RosettaCodeData/Task/Conditional-structures/Lapyst/conditional-structures-2.lapyst

12 lines
176 B
Text
Raw Permalink Normal View History

2026-04-30 12:34:36 -04:00
switch x do
case 1:
foo();
fallthrough; // Falls through and also executes "case 2"'s code
case 2:
bar();
break; // Break out of switch.
default:
baz();
break;
end