Vai al contenuto

Comparison operators

if (condition) then else end_if;Allows you to control the execution of code through the testing conditions.Condition must contain 2 variables or constants with one of the following comparison operators:
  • = true condition if variables are equal
  • <> true condition if variables are different
  • > true condition if variable 1 is bigger then 2
  • < true condition if variable 1 is smaller then 2
  • >= true condition if variable 1 is bigger or equal to variable 2
  • <= true condition if variable 1 is smaller or equal to variable 2
  • ! (or NOT) negates condition
The instructions between else and end_if are executed where the main condition is not true.You can nest multiple if instructions and are available complex conditions (more than one condition per line, separated by “and” / “or” / “xor”, & | ^).In the conditions is also possible to perform temporary calculations