servaeo Posted August 20, 2020 Posted August 20, 2020 (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 August 20, 2020 by servaeo Included quote from condition to illustrate my confusion.
Grimes Posted August 20, 2020 Posted August 20, 2020 It is the first one. 1 The right man in the wrong place makes all the difference in the world. Current Projects: Grayflag Server, Scripting Wiki Useful Links: Mission Scripting Tools MIST-(GitHub) MIST-(Thread) SLMOD, Wiki wishlist, Mission Editing Wiki!, Mission Building Forum
Recommended Posts