If I use:
local a, b ,c
a = 1
b = 1
c = 1
if a == (b or c) then x end
I only ever get a response if b is true c is not evaluated
If I change this to
if (a == b or a == c) then x end
This correctly evaluates either b or c
p.s. I am using this Lua in a Fibaro Home Centre 3 Home automation system.