# Logic: Condition

Branches an incident workflow so a defined set of subsequent steps runs only when a specified condition evaluates to true.


> **Availability:** See the [Incident Workflow Actions Overview table](/workflow-actions) for the plans this workflow is available on.

## Description

**Condition** is an action that executes a series of steps when a condition is met.

## Instructions

1. If you have not done so, follow the instructions to [Create an Incident Workflow](/ai-automation/automation/incident-workflows#create-an-incident-workflow).
2. When the instructions prompt you to [add actions](/ai-automation/automation/incident-workflows#add-actions), select **this action**.
3. Enter the following **Inputs** and click **Save**.
4. Continue following instructions to **Publish** the Workflow.
5. When the action runs, you will see the **Outputs** listed below.

## Inputs

> **Field References:** Fields with the **\{+\}** icon accept [Field References](/ai-automation/automation/incident-workflows#field-references), which can be useful for referencing incident data or outputs created in prior workflow steps. To add Field References, click **\{+\}**, or enter `{{`, and select relevant fields. Refer to the [Field References](/ai-automation/automation/incident-workflows#field-references) article for more information.

<br />

| Name      | Description                                    |
| :-------- | :--------------------------------------------- |
| Condition | All of the following conditions must be met    |
| Actions   | The actions to execute if the condition is met |

1. In the section **All of the following conditions must be met**, specify what conditions must be met for the actions within the Condition to be executed. _Optionally_ click **New Condition** to add more conditions as necessary. When you are finished adding conditions, click **Save**

- As an example, you can select `Field = “Status”, Operator = “Matches”, Value = “Resolved”` if you would like the condition to execute only if the incident has been resolved at the time the Condition is checked, before proceeding to any actions after the Condition logic action.

![Condition example](/images/kb/af0cac770e4356690955cc97335b5ab642dc57fc96c5f685b94431f279c1fe2f-ede2c9b-image2.png)

2. Once you've saved your conditions, click **Add Action** on the condition to configure actions that will execute when the condition(s) are met. Please refer to each action's documentation (available in left menu or via search) for more information.

## Outputs

| Name                | Description                                              |
| :------------------ | :------------------------------------------------------- |
| Result              | Final status                                             |
| Result Summary      | Description of the status                                |
| Condition Satisfied | Whether the condition was evaluated as true              |
| Error               | Brief description that is populated if the action failed |
