4.2.3 If Condition

An If command sequence conditionally executes blocks of code. See the pages on Comparing Expressions and Compound Conditions regarding conditional expressions. Conditions have no side effects and so neither do If and Else commands.


The case form of an 'If-Else' command sequence uses Comparison Lists to compare an integer or enumerated expression to a list of one or more constants for equality. Else-Is commands compare the expression in the If command to additional constants.


In this example a character is compared to various sets of literals.

Call a Method

Assert Condition