The
WHEN
/THEN
/ELSE
Statement is used for execution of SCL statements upon the occurrence of an event.THEN statement [ ; statement . . . ]
ELSE statement [ ; statement . . . ]
In this structured statement, the statements following the
THEN
and before theELSE
are executed if theevent_expression
is true. If false, the statements following theELSE
are executed. Theevent_expression
may include references to Rational Statemate elements as well as SCL variables and constants.