The WHEN statement is used for conditional execution of SCL statements depending on event occurrence.
where
trigger
is any event expression andstatement
is any SCL statementThe
WHEN/THEN/ELSE
structured statement is used to execute SCL statements when a particular event occurs. The statements followingTHEN
and beforeELSE
are executed if the trigger is true. If the trigger is false, the statements betweenELSE
andEND
are executed.