LOTUSSCRIPT LANGUAGE


If...Then...Else statement
Example

Conditionally executes one or more statements, depending on the value of an expression.

Syntax

If condition Then [ statements ] [ Else [ statements ] ]

Elements

condition


statements
Usage

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.

Language cross-reference

@If function in formula language

@V2If function in formula language

Example
See Also