|
2011/10/19 Oskar Forsslund <matrixsmurfen@googlemail.com>:
Just replace "and" with && and "or" with ||:> Can anyone think of a good way to transfer logical expressions from lua to
> c.
> expressions like
> func() and func2() and (func3() or func4())
func() && func2() && (func3() || func4())
AFAIK the evaluation rules are the same as in Lua (ie. if func()
returns false, the three other functions won't be called).