12 lines
215 B
Text
12 lines
215 B
Text
switch v [with fallthrough] do
|
|
case 1,2:
|
|
-- do something
|
|
case 3 then
|
|
-- do something
|
|
fallthrough
|
|
case 4:
|
|
-- do something
|
|
break
|
|
default:
|
|
-- do something
|
|
end switch
|