> For the complete documentation index, see [llms.txt](https://docs.ondiagram.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ondiagram.com/nodes/if-then.md).

# If / Then

## General

The `If / Then` node checks a condition and proceeds with the "Then" port if it's true or the "Else" port if it's false. It supports ===, ==, !==, !=, >=, >, <= and < operators and the typeof and not typeof functions. Also, any of the two parameters or both can be set to a constant value.

## Input

* **Param 1:** *(optional)* Receives an `Object`, `String`, `Number` or `Boolean` to check against the condition. This value is optional if the parameter is set to a constant value.
* **Param 1:** *(optional)* Receives an `Object`, `String`, `Number` or `Boolean` to check against the condition. This value is optional if the parameter is set to a constant value.

## Output

* **Then:** Triggers if the condition is true.
* **Else:** Triggers if the condition is false.

## Use Cases

Return a static response based on the input.

* Request (Get) ➡ If / Then ➡ Response (200)
