If
Execute statements conditionally.

 'If' is a standard programming command and is widely mis-used by programmers. There are two basic forms of the IF statement in Userbase; the single line statement and the block if statement. The block if statement may have the sub-condition Else.
Formats:
IF condition [THEN] statement
IF condition [THEN]
statement...
statement...
END_IF
IF condition [THEN]
statement...
statement...
ELSE statement...
IF condition [THEN]
statement...
statement...
ELSE
statement...
statement...
END_IF
Notice that THEN is surrounded by '[' and ']'. This means that the THEN may be included but it is not absolutely necessary. It just makes it easier for anyone reading the code.
conditionConditional expression.
The conditional expression can be any IDML expression, numeric or string. Zero or a null string is FALSE; anything else is TRUE.
conditionAny DML statement, including another IF statement. You may nest multi-line IF statements.
Conditional expression.