# Decision

Used to define multiple option paths and proceed to a particular path when the respective condition is satisfied. Allows the user to add multiple option paths with their own title and condition.

The option that satisfies the given condition will be executed. If all conditions are failed then the else option will be executed.

<figure><img src="https://2655769465-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LjVABEcCgwItwY4IEAD%2Fuploads%2FCLiOeF6s91T6ICdx2YVr%2FScreenshot%20from%202023-10-17%2017-49-42.png?alt=media&#x26;token=9c4ee76c-4641-4bb4-b6fa-6298eade6845" alt=""><figcaption></figcaption></figure>

### Options

For each option

* Title - Title of the option for better readability and understandability. Keep it short.
* Condition
  * Field - Selected from [Data Hub](https://docs.dckapintegrator.com/project-manager/flow-builder#data-hub)
  * Operator - to compare the field and value
  * Value - to which the field is compared

In a single option, multiple conditions can be configured with the joining operators `AND, OR`. The nested level is also allowed to provide precedence to the sub-condition.

**Example:** `{{1.name}}` is equal to `Alice` <mark style="color:orange;">AND</mark> (`{{1.city}}` is equal to `New York` <mark style="color:orange;">OR</mark> `{{1.zipcode}}` is equal to `10001`)

In the above example, the precedence is given to city and zip code. Nested is used to provide that precedence in Condition Builder.

There are no limitations on how many options can be added.&#x20;

### Use Cases:

Multiple options to execute different workflow paths based on the city of the customer.

**Option A:**&#x20;

Title: Customer from New York

Condition: `{{1.customer.city}}` is equal to `New York`&#x20;

<mark style="color:green;">This will be executed when the customer is from New York</mark>

**Option B:**&#x20;

Title: Customer from Los Angeles

Condition: `{{1.customer.city}}` is equal to `Los Angeles`&#x20;

<mark style="color:green;">This will be executed when the customer is from Los Angeles</mark>

**Else Option**

No condition is needed for the else option. <mark style="color:green;">This will be executed when the customer is neither from</mark> <mark style="color:green;"></mark><mark style="color:green;">`New York`</mark> <mark style="color:green;"></mark><mark style="color:green;">nor</mark> <mark style="color:green;"></mark><mark style="color:green;">`Los Angeles`</mark><mark style="color:green;">.</mark>
