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, the value of which will be checked. The condition is fulfilled if the value of the variable is not an empty string and it doesn't not equal to "0" and "false". You can specify the negation '!'.
myvar !myoption
Value of the variable
It is possible to specify the value of the variable by using the character '#'. 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 the operations && (AND) and ||(OR). Specify a character 'N' before the variable 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 method allows you to use any logical conditions in the Gentee programming language, including the 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