# OR Task

The *Or* task works in a similar manner to the logic operator “OR”. It returns a true value if any one of its arguments is true, otherwise, it returns false.

<figure><img src="https://750977703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqHxyVNGb7tSdIWecl6Ru%2Fuploads%2FngUiPqwKj8XGWo6WxBei%2Fimage.png?alt=media&#x26;token=803fac75-39cb-407a-82b6-d153d19b75b5" alt=""><figcaption></figcaption></figure>

To use an OR logic operator task:

1. Drag and drop the *Or* task object onto the workflow designer.

<figure><img src="https://750977703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqHxyVNGb7tSdIWecl6Ru%2Fuploads%2F2dEg7NLrXHA5qvM3ocxc%2Fimage.png?alt=media&#x26;token=0c9a3b64-da1a-485f-aaac-572029377e59" alt=""><figcaption></figcaption></figure>

The *Or* task object can be used with all workflow tasks. These tasks can include *Decision*, *Run Dataflow*, *Run Workflow*, etc.

2. The *Or* task object does not have a dedicated configuration window. However, a *General Options* window will open if you right-click on its header and select *Properties* from the context menu.

<figure><img src="https://750977703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqHxyVNGb7tSdIWecl6Ru%2Fuploads%2F0AaIRHof5nm7yelnzyfd%2Fimage.png?alt=media&#x26;token=5dcd5fa3-5897-4809-a1a1-46598fcc4677" alt=""><figcaption></figcaption></figure>

This window appears as the last screen of the configuration window for all flow objects.

3. The *Comments* input allows you to enter comments associated with this object. These comments appear as you hover over the object.
   * *Clear Incoming Record Messages*: Removes any message attached with a record, these could be an error or a warning message.
   * *Do Not Process Records with Errors*: Filters out all the erroneous records from the incoming data set.
   * *Do not Overwrite Default Values with Nulls*: Prevents Astera from overwriting any previously assigned default value with a null value.

The following is an example of using the *Or* object in a workflow:

<figure><img src="https://750977703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqHxyVNGb7tSdIWecl6Ru%2Fuploads%2FyYQ64haQIaEpanAD0Au4%2Fimage.png?alt=media&#x26;token=85331eaf-973f-43a8-93b2-383cdbceea5e" alt=""><figcaption></figcaption></figure>

Here, you can see that if the *CustomersData* ends in error or *OrdersData* ends successfully, then the *FileTransfer* task will get triggered. This means that if either of the tasks associated with *Or* meets the specified criteria, then the subsequent task/tasks will be triggered.
