RosettaCodeData/Task/Conditional-structures/PL-I/conditional-structures-4.pli

22 lines
270 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
select; /* select first matching condition */
when (i = 4)
do;
statement_s;
end;
when (this = that)
do;
statement_s;
end;
when (mystring = 'ABCDE')
do;
statement_s;
end;
other
do;
statement_s;
end;
end;