#Conditional execution

1 messages · Page 1 of 1 (latest)

queen wing
#

Re-posting a question from @marsh locust :

Does anyone have an example of how to do conditional execution? I.e. use this action when client.commands.foo.stdout == "bar" else use that action.

I've tried several ways of disjunctions and if-conditionals but I can't make it work... if I set a default value for the field/variable that the decision is based on, then whatever that default value is, decides the execution, regardless of the actual value during runtime. If I don't set a default value, the plan apparently is not complete and the action "doesn't exist".

#

Re-posting reply by @candid dome :

could you pass in the action to run using --with?

queen wing
viral mist
queen wing