What is a good way to do "if error then … else …"

:rolling_eyes:
ah. The pitfalls of having Discourse dump you in the middle of the thread and you weren’t sharp enough to figure it out. Thanks Dan. Sorry to trouble you over such minutiae.

Oh man, I can't believe you caused me that much work. My fingers hate you! (Just kidding. :slight_smile:)

Despite an error in an "Execute Shell Script" action, the %ActionResult% token value continues to be set to "OK." I would like to implement an if statement that, in the case of an error, opens an actual terminal window and runs the command so that I can see and deal with the error.

The following images show the macro I am trying to implement and my Failure/Timeout settings on the action that I would like the %ActionResult% token to recognize as having failed.

Any ideas on how to get this to work?

Hey Markus,

Have a look at this thread:

Do Shell Script Grep Action Fails When Script Returns Nothing

-Chris