RosettaCodeData/Task/Conditional-structures/Lapyst/conditional-structures-2.lapyst
2026-04-30 12:34:36 -04:00

11 lines
176 B
Text

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