Conditionally executes one or more statements, depending on the value of an expression.
If condition Then [ statements ] [ Else [ statements ] ]
condition
Any numeric expression. A value of 0 is interpreted as FALSE, and any other value is interpreted as TRUE.
statements
A series of statements, separated by colons.
An If...Then...Else statement must occupy a single line of code. Line continuation with the underscore character (_) is allowed.
If condition is TRUE, the statements following Then, if any, are executed. If condition is FALSE, the statements following Else are executed.
If no statements follow Then, and there is no Else clause, Then must be followed by a colon (:). Otherwise LotusScript® assumes that the statement is the first line of an If...Then...Else...End If statement.