LOTUSSCRIPT LANGUAGE


If...Then...ElseIf statement
Example

Conditionally executes a block of statements, depending on the value of one or more expressions.

Syntax

If condition Then

statements

[ ElseIf condition Then

statements ]

...

[ Else

statements ]

End If

Elements

condition


statements
Usage

LotusScript executes the statements following the Then keyword for the first condition whose value is TRUE. It evaluates an ElseIf condition if the preceding condition is FALSE. If none of the conditions is TRUE, LotusScript executes the statements following the Else keyword. Execution continues with the first statement following the End If statement.

You can include any number of ElseIf expressions in the block.

You can include an If statement within an If statement. Each If block must be terminated by an End If.

Language cross-reference

@If function in formula language

@V2If function in formula language

Example
See Also