Ask Your Question

Revision history [back]

lua concat "and" and "or" statements

Hello there!

Let's say I have an if-statement, i.e.

if a == 0 and (b == 1 or b == 3 or b == 5) then output = "ok"

Is there a way to shorten the code like this: if a == 0 and (b == 1, 3, 5) then output = "ok"