×
Меню
Индекс

MSFD Constructing Boolean operations

Unfortunately there are no Boolean operators (AND, OR, NOT, XOR, …) in the scripting language. Thus you need to construct these yourself using if… elseif structures.
 
Instead of AND:
if ( variable1 AND variable2 ); does not exist
     [do something]
endif
 
 you have to use:
If ( variable1 )
     If ( variable2 )
          [do something]
     endif
endif
 
 
For OR constructs:
if ( variable1 OR variable2 )
     [do this]
endif
 
you can use elseif constructions:
 
If ( variable1 )
     [do this]
elseif ( variable2 )
     [do this]
endif