A new Flow Control Statement WHEN / OR WHEN / ELSE WHEN / END WHEN when one Expression is true and ready with work, then it moves to END WHEN, no other comparsion will be made. Look in the generated Pascalsource to see what it does.
WHEN x=y THEN {your Code} {your Code} ............ so many rows if you want OR WHEN a=b THEN {your Code} {your Code} ............ so many rows if you want OR WHEN c=d THEN {your Code} {your Code} ............ so many rows if you want ELSE WHEN -----------------------------------------------when nothing other matches, {your Code} this will be done. {your Code} ............ so many rows if you want END WHEN
You can but must not use ELSE WHEN.
|