To exclude certain images/layers from processing and export, press the `Add Condition...` button and select one of the available conditions.

Like [actions](Actions.md), you may activate/deactivate, [edit](Editing Actions and Conditions.md) or remove conditions.


## Built-in Conditions

### Layer

#### Layers

*Only available for: Export Layers, Edit Layers*

Processes only layers (i.e. group layers are not processed).

#### Group Layers

*Only available for: Export Layers, Edit Layers*

Processes only group layers.

You need to disable the `Layers` condition since having both enabled will result in no layer being processed.

#### Visible

*Only available for: Export Layers, Edit Layers*

Processes only visible layers.

#### Selected in GIMP

*Only available for: Export Layers, Edit Layers*

Processes only layers selected in GIMP.

#### With Color Tags

*Only available for: Export Layers, Edit Layers*

Processes only layers having a color tag.

By default, all layers without a color tag are excluded.
To process only layers with specific color tags, edit this condition and add the color tags for the `Color tags` option.
For example, by adding a blue tag, only layers containing the blue tag will be processed.
Other tagged or untagged layers will be excluded.

#### Without Color Tags

*Only available for: Export Layers, Edit Layers*

Processes only layers without a color tag.

By default, all layers with a color tag are excluded.
To exclude only specific color tags, edit this condition and add the color tags for the `Color tags` option.
For example, by adding a blue tag, all layers except the ones containing the blue tag will be processed.

If a group layer has a color tag, it will normally not be excluded.
To also exclude group layers with color tags, click on `More options` and check `Also apply to parent folders`.

#### Without Color Tag

*Only available for: Export Layers, Edit Layers*

*Only available if `Insert Overlay (Watermark)` is added*

Processes only layers not having the color tag selected in the `Insert Overlay (Watermark)` action.


### Naming

#### Matching Text...

Processes only images/layers whose names match the specified text.

You can adjust how to perform matching - whether the image/layer name should start with, contain or end with the specified text to match. For example, with the "Ends with text" option, you can match against an arbitrary file extension instead of the one typed in the main dialog (via the `Matching File Extension` condition).

Matching can be made case-insensitive by checking the *Ignore case sensitivity* option.

You can also specify a regular expression pattern as defined in the [`re` module for Python](https://docs.python.org/3/library/re.html). Errors in the regular expression pattern will result in no matches.

#### Matching File Extension

Processes only images/layers whose names match the file extension typed in the main dialog.

#### Recognized File Format

*Only available for: Batch Convert*

Processes only images whose original file extension is supported by GIMP.

If you use third-party file load plug-ins with their own file extension, uncheck this condition so they can be processed.


### File

#### Imported

*Only available for: Export Images, Edit and Save Images*

Processes only images imported from a non-native (XCF) file.

#### Not Imported

*Only available for: Export Images, Edit and Save Images*

Processes only images that are native (XCF) images or are unsaved images without a file.

#### Saved or Exported

*Only available for: Export Images, Edit and Save Images*

Processes only images that are saved as native (XCF) files or exported to another file format.

#### Not Saved or Exported

*Only available for: Export Images, Edit and Save Images*

Processes only images created in GIMP not yet saved to a file.

#### With Unsaved Changes

*Only available for: Export Images, Edit and Save Images*

Processes only images with unsaved changes ("dirty" images).

#### With No Unsaved Changes

*Only available for: Export Images, Edit and Save Images*

Processes only images with no unsaved changes ("clean" images).

#### XCF (Native GIMP) File

*Only available for: Export Images, Edit and Save Images*

Processes only images associated with an XCF file.

#### Not XCF (Native GIMP) File

*Only available for: Export Images, Edit and Save Images*

Processes only images not associated with an XCF file.
This includes imported images or new images created in GIMP.


### Top-Level

*Only available for: Batch Convert, Export Layers, Edit Layers*

Processes only top-level images/layers (i.e. images/layers inside any folder/group layer are excluded).
