Conditional actions let you build actions that choose what to do based on one of several different conditions. First, you choose a condition and then, optionally specify an action that plays if the document meets the condition. Then, you optionally specify an action that plays if the document does not meet the condition.
To insert a conditional action step into an action that you're recording or editing:
Choose actions from the Then Play Action menu and the Else Play Action menu, and then, click OK.
You can also choose None in one of the menus, but not both. You can run an action only if a particular condition is false by choosing None as the Then Play Action and choosing the desired action as the Else Play Action.
There is a Conditional Mode Change command to specify conditions for a color mode change step in an action. Using this command can prevent an error where a file is not in the source mode specified by the action.
There might be instances when you want to test the opposite of what's in a condition.
For example, suppose you want "Action 1" to play when when the frontmost document is non-square. You would specify the conditional: "If Current Document is Square, Then Play Action None, Else Play Action "Action 1."
To test for the opposite of a particular condition, swap the "Then" and "Else" actions.