Forum Discussion
Variable/Trigger Help
Thank you so much!
I still don't understand the "why" behind it automatically changing to the second trigger the way I set it up, but I'll build things this way moving forward.
Let me try to clarify the "why" for you. When there are multiple triggers with the same "when," all the triggers run in the order they appear in the Trigger Panel. Each trigger's action is performed (unless trigger conditions prevent it).
With your two triggers, the first time the DBalanceBeam variable changes, the state of D Balance = Normal.
Thus, the 1st trigger sets the state of D Balance to Lean Left.
The program then immediately runs the 2nd trigger. Because D Balance was just changed to the Lean Left state, the 2nd trigger's condition is met, so that trigger changes D Balance to the Lean Right state.
The actions of both triggers happen so quickly that you only see the result from the 2nd trigger: D Balance = Lean Right.
Bottom line: When multiple triggers share the same "when," you need to consider how each action could impact what's done with subsequent triggers.
Related Content
- 10 months ago
- 11 months ago