Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Simple Lua Efficiency Question?

Asked by 5 years ago

Hey guys, simple question here. I was just wondering if syntax similar to the lines of:

if string == "Hi" or "Bye" or "No" or "Yes" then

is possible in Lua.

Thanks

1 answer

Log in to vote
1
Answered by
Avigant 2374 Moderation Voter Community Moderator
5 years ago

No, that is not possible. You can use a dictionary to similar effect.

0
Thanks dpark19285 375 — 5y
Ad

Answer this question