Heres what i have currently:
Code: Select all
if A = true or B=true
if C=true
thenstuff
but is it possible to do something like:
Code: Select all
if C = true AND A=true or B=true
Code: Select all
if A = true or B=true
if C=true
thenstuff
Code: Select all
if C = true AND A=true or B=true
I think Hollywood uses the same operator precedence as Lua. In this case the AND operator is evaluated before the OR operator. It's probably best to always use explicit parentheses to make your intentions clear.Bugala wrote: Heres what i have currently:
by other words, c must always be true, while only a or b needs to be true in addition to c.Code: Select all
if A = true or B=true if C=true thenstuff
but is it possible to do something like:Code: Select all
if C = true AND A=true or B=true
Code: Select all
If ( A OR B ) AND C
DoStuff()
EndIf