39/50 – Conditional Actions in Photoshop CC

Adobe Photoshop

Conditional Actions in Photoshop enable ‘if then’ statements for additional flexibility when using Actions. This video will show you how.

Here is a list of the available conditional attributes:
Document is Landscape
Document is Square
Document Mode is RGB
Document Mode is CMYK
Document Mode is Grayscale
Document Profile is sRGB
Document Depth is 8 Bits per Pixel
Document Depth is 16 Bits per Pixel
Document Depth is 32 Bits per Pixel
Document has unsaved Changes
Document has a Selection
Document has Layers
Document has Alpha Channels
Document is Open
Layer is Background
Layer is Pixel layer
Layer in Adjustment Layer
Layer is Shape Layer
Layer is Layer Group
Layer is Locked
Layer is Visible
Layer has pixel mask
Layer has Vector Mask
Layer has Effects

Adobe Photoshop

Posted on 09-04-2014


  • By Matt - 9:46 PM on September 4, 2014  

    Are these conditionals described anywhere? I’m trying to put in a Conditional, for if there are multiple layers, select the top and merge visible, but if there’s only 1 layer, duplicate it rasterized, and then do the rest of the stuff in the action.

    The Conditional names are not always self-evident. E.g., “Layer is Pixel Layer”, I expect that if the layer is a normal, non-Adjustment non-Smart Object layer, that “Layer is Pixel Layer” would evaluate to True. It does. But it also evaluates to True on a Smart Object layer. Which is counter-intuitive. Or possibly a defect in CC 2014.

    • By Jeffrey Tranberry - 11:49 AM on September 10, 2014  

      Hi Matt,

      Indeed, while most are self evident, there are few that are a bit tweaky such as the case you note. The details of things like what constitutes a “pixel layer” and whether “is landscape” should be true or false for square are arbitrary because those are the level of detail where different people argue for different answers. “A smart object is a pixel layer, you just can’t edit the pixels”. We could add conditionals for “is smart object” or “is editable pixel layer”. Would those be helpful to you? Are there other conditionals you’d like to see?

      Alternatively, if you know javascript, a script would give you infinitely more control.