Jump to content

Recommended Posts

Posted (edited)

With multiple conditions and one or more [OR] conditions in a trigger condition, what does the [OR] bind to?

i.e, is the binding for [OR] tighter than than the implied [AND] between two non-[OR] conditions?

 

From the manual:

When multiple trigger conditions are set, they operate with an "AND" operator. In other words,

all of the conditions must be true for the trigger to be activated. To separate conditions with an

"OR" operator, press the OR button in the conditions pane. In this case, the condition(s) either

above or below the "OR" operator will activate the trigger.

This implies that the [OR] operation binds tighter than the [AND] operation

 

As an example, if I have the condition list

Unit A inside zone Z

Unit A AGL altitude higher than 10000

[OR]

Unit B inside zone Z

Unit B AGL altitude higher than 10000

 

is the condition evaluated as

( Unit A inside zone Z [AND] Unit A AGL altitude higher than 10000 ) [OR] ( Unit B inside zone Z [AND] Unit B AGL altitude higher than 10000 )

 

or is it evaluated as:

Unit A inside zone Z [AND] ( Unit A AGL altitude higher than 10000 [OR] Unit B inside zone Z ) [AND] Unit B AGL altitude higher than 10000

 

 

I'm hoping for the first, but worried it might be the second.

Edited by servaeo
Included quote from condition to illustrate my confusion.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...