Global variable trigger help

Post your questions and help other users.

Moderator: Martin

Post Reply
Ghlave
Posts: 28
Joined: 06 Aug 2013 18:06

Global variable trigger help

Post by Ghlave » 09 Aug 2014 05:00

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?

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: Global variable trigger help

Post by Martin » 09 Aug 2014 08:10

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

Ghlave
Posts: 28
Joined: 06 Aug 2013 18:06

Re: Global variable trigger help

Post by Ghlave » 09 Aug 2014 12:11

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!

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: Global variable trigger help

Post by Martin » 09 Aug 2014 17:43

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.

Post Reply