Conditional Feature


ActionsXXL lets you add an action step that plays another action (before continuing with the current action playback) depending on a property of the current document or layer.
This way you can create various actions that deal with different document or layer states.


You can add such a conditional step by clicking on the Conditional icon at the bottom of the panel window or by choosing the Insert Conditional menu item from the panel menu. Such a condition step works similarly to the if / then / else constructs of many programming languages: If a certain condition is met, action 1 is played, otherwise actions 2 is played. However, you can also decide to only play an action if the condition is met or not met.

On the appearing dialog you can choose a condition from the If combo box. In the Then Play combo box you can choose an action from the current set that is played if the condition is true. The Else Play combo box lets you select an action from the current set that is played if the condition is false. You can also choose a None item from one of the two bottom combo boxes to avoid playing an action if the condition is either true or false. If you choose None for both cases, no conditional step will be added to the action.

For example, in the above screenshot the action "Sepia Toning with Grain" is played if the image has a landscape orientation, meaning that its width is larger than its height. If the image does not have a landscape orientation, if it is square or has a portrait orientation, then the action "Sepia Toning" from the current set it played.

You can choose between 24 conditions in the If combo box. They range from properties of the current document to properties of the current layer. Here is a list of all conditions with an explanation for each of them:
Condition Explanation

Document Is Landscape

This condition is true if the width of the document is larger than its height. It is not true for portrait and square proportions.
Document Is Square This condition is true if the height and width of the document are the same. It is not true for landscape and portrait image proportions.
Document Is RGB This condition is true if the document is in RGB mode. For all other image modes it is false.
Document Is CMYK This condition is always false in Photoshop Elements, because there is no CMYK mode. But this condition was kept for compatibility with Photoshop.
Document Is Grayscale This condition is true if the document is in grayscale mode. For all other image modes it is false.
Document Profile Is sRGB This condition is true if the document uses an sRGB profile. For all other profiles it is false.
Document Is 8-bit This condition is true if the document uses 8 bits per channel. It is false for 16 bits per channel.
Document Is 16-bit This condition is true if the document uses 16 bits per channel. It is false for 8 bits per channel.
Document Is 32-bit This condition is always false in Photoshop Elements, because there is no support for 32 bits per channel. But this condition was kept for compatibility with Photoshop.
Document Is Unsaved If the document was changed since it was last saved, then this condition is true. You can see it from the * sign at the end of the document name in the tab sheet button or the title bar of the document.
Document Has Selection This condition is true if there is a selection available. It is false if there is no selection.
Document Has Layers This condition is true if there are layers in the document. It is false if there is only a background image.
Document Has Alpha Channels This condition is true if alpha channels exist. Alpha channels are usually created with the Select > Save Selection command, but they can also be created by an action or with ElementsXXL's Channels panel.
Document Is Open This condition is true if at least one document is open.
Layer Is Background This condition is true if the currently selected layer is the background image.
Layer Is Pixel Layer This condition is true if the currently selected layer is a normal image layer. The condition is false if the currently selected layer is an adjustment layer, text layer, smart object, shape layer or layer group.
Layer Is Adjustment Layer
This condition is true if the currently selected layer is an adjustment layer. The condition is false if the currently selected layer is a pixel layer, text layer, smart object, shape layer or layer group.
Layer Is Text Layer This condition is true if the currently selected layer is a text layer. The condition is false if the currently selected layer is a pixel layer, adjustment layer, smart object, shape layer or layer group.
Layer Is Shape Layer This condition is true if the currently selected layer is a shape layer. The condition is false if the currently selected layer is a pixel layer, text layer, adjustment layer, smart object or layer group.
Layer Is Layer Group This condition is true if the currently selected layer is a layer group. The condition is false if the currently selected layer is a pixel layer, text layer, adjustment layer, smart object or shape layer.
Layer Is Locked This condition is true if the current layer is locked. You can see if there is a lock icon in the Layers panel.
Layer Is Visible This condition is true if the current layer is visible. It is false if the layer is invisible or hidden.
Layer Has Pixel Mask This condition is true if the current layer has a layer mask consisting of pixels. It is not true if the current layer does not have a layer mask.
Layer Has Vector Mask This condition is true if the current layer has a vector mask. It is not true if the current layer does not have a vector mask.
Layer Has Effects
This condition is true if the current layer has layer effects, also know as styles, applied to it.