Switch Case And Otherwise

LANSA Composer

Switch, Case And Otherwise

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

There are no additional details to complete in the detailer window for the Switch and Otherwise Directives.

For the Case Directive, you must specify the condition that is to be tested in the detailer window.

Condition

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