> For the complete documentation index, see [llms.txt](https://ubermanu.gitbook.io/migraine/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ubermanu.gitbook.io/migraine/processors/if.md).

# If

Analyzes an expression and executes the defined [task](/migraine/core/task.md).\
Check out the [HOA Ruler Documentation](https://hoa-project.net/En/Literature/Hack/Ruler.html).

## Options

#### **if (string)**

The expression to assert.

#### **then (string)**

The identifier of the task, if the the expression asserts *true*.

#### **else (string)**

The identifier of the task, if the the expression asserts *false*.

## Context

#### storage

Access the current default storage.

## Example

```yaml
default: !task
  - if: 1 = 1
    then: finish

finish: !task []
```
