Arguments that can be used with variables ?

Desto

Новичок
Регистрация
25.10.2019
Сообщения
9
Благодарностей
2
Баллы
3
Hello,

I would like to know where it is possible to find the list of arguments that can be used with the variables ?
Here are some examples that I would like to use in "IF" :
  • If I need to say that {-Variable.myvariable1-} is equal to {-Variable.myvariable2-} ? I try {-Variable.myvariable1-} = {-Variable.myvariable2-} but it doesn't work.
  • If I need to say that {-Variable.myvariable1-} is not empty
  • If I need to say that {-Variable.myvariable1-} is empty
  • Etc.

43717


I looked in the Wiki (https://zennolab.com/wiki/en:variables) but I didn't find anything about it and I would like to learn the different arguments that can be used.

Can you help ?

Thanks :-)
 

Sergodjan

Administrator
Команда форума
Регистрация
05.09.2012
Сообщения
20 080
Благодарностей
8 964
Баллы
113
Hello,

I would like to know where it is possible to find the list of arguments that can be used with the variables ?
Here are some examples that I would like to use in "IF" :
  • If I need to say that {-Variable.myvariable1-} is equal to {-Variable.myvariable2-} ? I try {-Variable.myvariable1-} = {-Variable.myvariable2-} but it doesn't work.
  • If I need to say that {-Variable.myvariable1-} is not empty
  • If I need to say that {-Variable.myvariable1-} is empty
  • Etc.

Посмотреть вложение 43717

I looked in the Wiki (https://zennolab.com/wiki/en:variables) but I didn't find anything about it and I would like to learn the different arguments that can be used.

Can you help ?

Thanks :-)
You must use quotation marks to compare string values and variables.
More details here: https://zennolab.com/wiki/en:logic
 
  • Спасибо
Реакции: Desto

Desto

Новичок
Регистрация
25.10.2019
Сообщения
9
Благодарностей
2
Баллы
3
Ok, I was looking for it wrong, thank you very much for your answer!
 
  • Спасибо
Реакции: Sergodjan

Sergodjan

Administrator
Команда форума
Регистрация
05.09.2012
Сообщения
20 080
Благодарностей
8 964
Баллы
113
Also, your equality is spelled incorrectly, it is correct to use this:

43718
 
  • Спасибо
Реакции: Desto

lokiys

Moderator
Регистрация
01.02.2012
Сообщения
4 799
Благодарностей
1 187
Баллы
113

Desto

Новичок
Регистрация
25.10.2019
Сообщения
9
Благодарностей
2
Баллы
3
Hello lokiys,

Thanks for the precision.
I can read this in the Wiki : "When you compare numbers you should not use quotes, when comparing text values single or double quotes are required. "

In zennoposter is the use of single or double quotes important ?
After a search on google, I read that "The difference is that you don't need to escape single quotes in double quotes, or double quotes in single quotes." but it doesn't mean much to me.

Thanks, :bw:
 

lokiys

Moderator
Регистрация
01.02.2012
Сообщения
4 799
Благодарностей
1 187
Баллы
113
Hello lokiys,

Thanks for the precision.
I can read this in the Wiki : "When you compare numbers you should not use quotes, when comparing text values single or double quotes are required. "

In zennoposter is the use of single or double quotes important ?
After a search on google, I read that "The difference is that you don't need to escape single quotes in double quotes, or double quotes in single quotes." but it doesn't mean much to me.

Thanks, :bw:
Did you search what you should use in ZennoPoster ?
I think You have read about C# programming language.
You can try to compare strings with and without quotes and you will see if that's important :-)
 
  • Спасибо
Реакции: Desto

VladZen

Administrator
Команда форума
Регистрация
05.11.2014
Сообщения
22 413
Благодарностей
5 900
Баллы
113
I would like to know where it is possible to find the list of arguments that can be used with the variables ?
These arguments are basic javascript comparing and logic operations. You should learn javascript syntax.
 
  • Спасибо
Реакции: Desto

Кто просматривает тему: (Всего: 2, Пользователи: 0, Гости: 2)