# 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://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2FMkFAgyCiPNvsyu16WNog%2F01-Decision-Object.png?alt=media&#x26;token=c7946417-4f7c-4267-99f1-ad3d71d06271" 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://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2FxzLOvb6zvHduGn1bw8Zi%2F02-01-Decision-Click.PNG?alt=media\&token=e913d60d-2dd6-452e-8a46-9372e41c5cd9)

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

![](https://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2FUPYFIv9rb7VVL12Db4eV%2F02-Decision-Properties.PNG?alt=media\&token=0bd87cfb-bbb0-4b8f-aeb3-2703c1ba3bb4)

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://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2F240aLxS4cenyr7SCMUMG%2F03-Decision-Configuration.png?alt=media\&token=78e5e690-17e6-45bd-8a2b-c13f6f297a9a)

{% 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.
