If ElseIf And Else

LANSA Composer

If, ElseIf And Else

The If, ElseIf and Else Directives can be used together to construct one or more blocks of items to be executed conditionally. For any one If Directive, one and only one of the If, ElseIf or Else blocks will be executed. The block executed will be the first If or ElseIf block whose associated condition is true or the Else block (if specified) if none of the conditions are true.

There are no additional details to complete in the detailer window for the Else Directive.

For the If and ElseIf Directives, you must specify the condition that is to be tested in the detailer window.

Condition

Required. Specifies the condition to be tested for this If or ElseIf block.  Refer to Conditioning Expressions for information about the syntax of conditioning expressions.