Conditionally Stopping an Action
If Element
AMPS includes the ability to run actions only if certain conditions are true. For some actions (such as the replication management actions), the condition is included as a part of the action. In other cases, AMPS provides If actions.
An If action is evaluated each time the execution of an action reaches the If action, that is, when all of the previous Do steps have been called.
When the condition specified in an If action is true, AMPS proceeds to the next Do action. If the condition in an If action is False, AMPS does not run any further Do elements in the action.