# Decision

A *Decision* task invokes one of the two paths in the workflow, depending on whether the logical expression inside the *Decision* object returns a Yes (True) or a No (False) flag.

<figure><img src="https://content.gitbook.com/content/zEifS4h8yurLAAwiGNX2/blobs/tbqKCN3sygu0mGuqNWaP/01-Decision-Object.png" alt=""><figcaption></figcaption></figure>

To use a *Decision* task, drag-and-drop the *Decision* object onto the workflow designer. Configure the object by right-clicking on the object’s header and selecting *Properties* from the context menu.

![](https://content.gitbook.com/content/zEifS4h8yurLAAwiGNX2/blobs/qNOKZ0ioXs4hOC71zWoK/02-01-Decision-Click.PNG)

This will open the *Decision Properties* window. The configuration window provides the interface to create some decision logic.

![](https://content.gitbook.com/content/zEifS4h8yurLAAwiGNX2/blobs/JXNMBojrzrvu9v3ZbcX8/02-Decision-Properties.PNG)

In the *Expression* input box, enter an expression. This expression should return a Boolean result, such as True or False. An example of this expression is shown below. The expression here is based on the presence of erroneous records in a *Run* *Dataflow* task object.

![](https://content.gitbook.com/content/zEifS4h8yurLAAwiGNX2/blobs/5H8iqpyYMMDiUL6be7ou/03-Decision-Configuration.png)

{% hint style="info" %}
**Note:** The right-hand pane, *Objects,* displays the object tree. You can double-click on an object to add it to your expression.
{% endhint %}

This concludes the configuration of the *Decision* object in Astera.
