Jump to content
Alert23

"or" in trigger condition

Recommended Posts

so i have a trigger placed and in its condition this:

this && vehicle player in thislist && (a1 inArea trg1) or (b1 inArea trg1)

for some reason the trigger only fires like this condition:

this && vehicle player in thislist && a1 inArea trg1

but ignores this part:

(a1 inArea trg1) or (b1 inArea trg1)

"or" in conditon seems so complicated than "and"

Share this post


Link to post
Share on other sites

@Alert23, OR has lower priority than AND, so you should use brackets to increase priority:

this && vehicle player in thislist && ((a1 inArea trg1) or (b1 inArea trg1))

I recommend to use curly brackets for lazy evaluation:

this && { (vehicle player) in thislist } && { (a1 inArea trg1) or { b1 inArea trg1 } }

 

  • Like 6

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×