Hey guys,
Is there a syntax in lua for using multiple “or” condition?
Say for example I want to do this:
[lua]
if (gamePhase==1 or gamePhase==2 or gamePhase==3 or gamePhase==4 or gamePhase==5) then
– do something
end
[/lua]
Is it possible to make it shorter? something like this…
[lua]
if (gamePhase==1,2,3,4,5) then
– do something
end
[/lua]
Cheers
Roy.