---
title: "initial"
canonical: "https://support.appfire.com/space/CDMC/2193659136/initial"
format: markdown
---
> Macro (aura-html)

## Overview

One or more [conditions](https://appfire.atlassian.net/wiki/spaces/CDMC/pages/2193852785)** **can be set for a trigger for a named** **[event](https://appfire.atlassian.net/wiki/spaces/CDMC/pages/2193950329) in the workflow. Adding a condition is optional.

Adding the **Is Initial State** as a **True** condition to a trigger ensures it only listens for events that occur when the current state is the **initial state** of the workflow.

![Comala visual editor trigger with initial state condition and clean messages](media://57465cc1-0188-480d-9c6d-954dc49d69f1)

The condition is a Boolean value—**true** or **false**.

When the specified workflow event occurs, the trigger evaluates the condition. If the condition is met, it executes one or more defined actions.

> ℹ️ To limit the initial condition to a specific state in the workflow, combine it with the **"state"** condition. When used together, both conditions are evaluated using an **AND** logic, meaning **both must be true** for the trigger to execute.

**JSON Condition**

`"initial":(boolean true/false)`

**JSON code**

```json
"conditions":
[
	{"initial":true}
],
```

**Note**

The trigger action occurs if the current state is the `initial` state.

The `initial` condition is constrained to a named state by including the [trigger state condition](https://appfire.atlassian.net/wiki/spaces/CDMCD/pages/656637975)

- `"conditions":[{"initial":true},{"state":"Review"}],`

The `initial` parameter value is a boolean

- `"initial":true`
- `"initial":false`

> ℹ️ The `initial state` in Confluence Cloud is the first workflow state applied when a workflow is added to a document. It is the first state listed in the workflow template.

## Example trigger code

```
{
      "event": "on-change-state",
      "conditions": [
        {
          "initial": true
        }
      ],
      "actions": [
        {
          "action": "clean-messages"
        }
      ]
}
```