# Decision (If/Else)

Evaluate a set of conditions that will execute the code in the IF statement when all the conditions are true. Specify an optional Else statement to execute if the IF conditions do not pass.

***

{% embed url="<https://www.youtube.com/embed/UHXPQ3tMXX0?autoplay=1&rel=0&vq=1080>" %}
*Add a Decision*
{% endembed %}

***

### Properties

1. **If Conditions**

   Set the conditions to evaluate to decide whether to execute the If Statement. Compare Script Variables and Input Parameters to each other and text values. Build up a collection of conditions using AND OR clauses to join them

![](/files/tXvv4MMYyuxUDCkpcHQB)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.stadium.software/actions/decision-if-else.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
