---
title: "Trigger conditions"
canonical: "https://support.appfire.com/space/CDMC/2193852785/Trigger%20conditions"
format: markdown
---
> Macro (aura-html)

# Overview

One or more `"conditions"` can be set for a trigger event in the workflow. Adding a condition to a workflow trigger is optional.

When you add a condition to a trigger, it becomes a requirement for the trigger to execute its [actions](https://appfire.atlassian.net/wiki/spaces/CDMC/pages/2192870598). When the named workflow event occurs, the trigger checks that any required condition is met before executing one or more actions.

# Conditions

However, when you add a **condition** to the trigger, it becomes a **requirement** for the trigger to execute the specified action(s). 

The available conditions are

- **[state](https://appfire.atlassian.net/wiki/spaces/CDMC/pages/2193787242)**** **-  sets a single named workflow state; the trigger runs only when the document is in that state.
- **[initial](https://appfire.atlassian.net/wiki/spaces/CDMC/pages/2193659136)** -  Boolean condition; the trigger runs only when the document is in the workflow’s **initial** state.
- **[final](https://appfire.atlassian.net/wiki/spaces/CDMC/pages/2193458873)** - a Boolean condition; the trigger runs only when the document is in the workflow’s **final** state.
- **[first-loop](https://appfire.atlassian.net/wiki/spaces/CDMC/pages/2592702860)**** **- a Boolean condition for the `on-change-state` event that controls how often the trigger runs: `true` runs only the first time a document enters the state; `false` runs every time.

> ℹ️ Boolean condition values `true` and `false` are entered in the code editor **without** quotation marks; for example, `"final":true`.