Reference

Table of Contents  ▸  List of Commands  ▸  Control Flow  ▸  onfail◀  noarg    |    parallel  ▶

onfail

Built-in command

No arguments

Description:

Execute following commands when an error is encountered in the body of the local...endlocal block.

The status value is set with the corresponding error message.

Example of use:

$ gmic image.jpg +local blur -3 onfail mirror x endlocal
Command: image.jpg +local blur -3 onfail mirror x endlocal
Command: image.jpg +local blur -3 onfail mirror x endlocal