lua switch
-- Define a variable
day = "Monday"
-- Use a switch-like structure using if-elseif-else
if day == "Monday" then
print("It's the start of the week")
elseif day == "Tuesday" then
print("It's the second day of the week")
elseif day == "Wednesday" then
print("It's the middle of the week")
elseif day == "Thursday" then
print("It's the fourth day of the week")
elseif day == "Friday" then
print("It's the end of the workweek")
else
print("It's the weekend")
end