Page 1 of 1
Global variable trigger help
Posted: 09 Aug 2014 05:00
by Ghlave
Is it possiblentonuse the global variable trigger son that it only activates when the variable is true? So far I can get one to fire every time the value changes, but I thought it could also fire if evaluated to true or false specifically. I could find many examples... Is that possible?
Re: Global variable trigger help
Posted: 09 Aug 2014 08:10
by Martin
Hi,
You can add a condition Expression directly after the trigger and only continue the flow on the true-branch of the condition when the variable has the value you like, for example:
-condition Expression: global_var==true
or in case of a boolean variable just:
-condition Expression: global_var
Regards,
Martin
Re: Global variable trigger help
Posted: 09 Aug 2014 12:11
by Ghlave
That's the method I have been using. I had wondered if I could incorporate that check directly into the trigger and have my code be a bit more simple/elegant. Thanks for the info!
Re: Global variable trigger help
Posted: 09 Aug 2014 17:43
by Martin
Unfortunately that's not possible yet. Let me add this to the todo-list since such an embedded check in the trigger would be very handy.