How to use If Condition

How to use If Condition

This parameter allows you to define the conditions under which the action will be executed or skipped. There are several ways to specify such fields. The program automatically determines what method you use.

Variable name

It is enough to specify a variable name, which value will be checked. The condition is TRUE if the variable value is not equal to 0. You can specify the negation '!'.

myvar
!myoption

Value of the variable

It is possible to specify the variable value by using characters '#'. This method is the same as the first one.
#myvar#
!#myoption#

Complex condition

This method allows you to specify some conditions and compare variables with numbers or strings. You can use parentheses, comparison operations and && (AND) and ||(OR) operations. Specify a character 'N' before the varaible name for numeric comparison and a character 'S' before the variable name for string comparison.
Nosplatform >= 2 && Nmyoption
!Nokaction && ( Smode == "full" || Smode == "normal" )

Gentee condition

This way allows you to use any logical conditions with Gentee programming language, including calling of functions.
macrox_getint("osplatform") >= 2 && macrox_getint("myoption")
!macrox_getint("okaction") && ( macrox_get("mode") == "full" || 
     macrox_get("mode") == "normal" )
macrox_do("#left#") != macrox_do("#right#") || myfunction( 10 ) < 10