RosettaCodeData/Task/Conditional-structures/Pop11/conditional-structures-9.pop11
Ingy döt Net d066446780 langs a-z
2013-04-10 22:43:41 -07:00

7 lines
217 B
Text

switchon(x)
case .isstring then printf('A1');
notcase .isinteger then printf('A2');
case = 2 orcase = 3 then printf('A3');
case > 4 andcase < 15 then printf('A4');
else printf('A5');
endswitchon;