# Toolbox

## **Available Actions**

* [If-then](#if-then) - Make your pipe run different actions depending on desired conditions
* [Only Continue If](#only-continue-if) - Stop your pipe from running if it did not receive the desired input

## If-then

{% hint style="info" %}
Do note if you have an existing pipe, "if-then" will only appear at the **last step.**
{% endhint %}

1. Select **Toolbox** as the app
2. Select **If-then** as the action event.

#### Initial Set-up

1. Once you have selected the **If-then** action, 2 branches will appear (a *branch is a set of actions that you want your pipe to run when certain conditions are met):*<br>

   <figure><img src="https://2212031742-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXyVsBiX9OwOL1o9g5hLM%2Fuploads%2Fo9Nb5aUb7dsmK371eEc7%2F1.png?alt=media&#x26;token=5511c0c7-202f-420f-8f51-53999f44ca4f" alt=""><figcaption><p>Default If-then branches</p></figcaption></figure>
2. Click on one of the branches. A window will appear where you can configure your desired condition, as well as actions to take if the condition is met:\
   \
   You can give your branch an unique name to avoid any confusion under "Branch Name"

<figure><img src="https://2212031742-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXyVsBiX9OwOL1o9g5hLM%2Fuploads%2FG8lWVzy6Rz07LxOarFJe%2F2.png?alt=media&#x26;token=0beb7741-78fc-4dc0-81e8-743dc2036fae" alt=""><figcaption></figcaption></figure>

#### Configuring your condition

<figure><img src="https://2212031742-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXyVsBiX9OwOL1o9g5hLM%2Fuploads%2F3UpCDSwHrqWVG69vKQAE%2F3.png?alt=media&#x26;token=2f70bc14-3842-43cb-9139-f911917d4046" alt=""><figcaption></figcaption></figure>

1. In the "*Field*" input box, select the variable that you want to check.
2. In the "*Is or Is Not*" and "*Condition*" input boxes, configure the logical rule you want to apply.
3. Finally, in the "*Value*" field, input the value that you want to compare the variable against.
4. You can also click the "*And*" button to add more logical rules.

#### Test condition

1. Click **Test Step**.
2. If the test data **has met** the conditions, you’ll see a confirmation that the Pipe would **have continued**. <br>

   <figure><img src="https://2212031742-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXyVsBiX9OwOL1o9g5hLM%2Fuploads%2FR4ocyLEblSMqnms6rI5Q%2FScreenshot%202023-10-16%20at%202.51.41%20PM.png?alt=media&#x26;token=5479384d-7b3c-433a-a079-e430c281c970" alt=""><figcaption></figcaption></figure>
3. If the test data **has not met** the conditions, you’ll see a confirmation that the Pipe would **not have continued**. This doesn't stop you from building your pipe. <br>

   <figure><img src="https://2212031742-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXyVsBiX9OwOL1o9g5hLM%2Fuploads%2FUJ85E3HrTksrVwqabGjg%2F3-2.png?alt=media&#x26;token=5e789924-f879-42c7-a87e-03067f281ae2" alt=""><figcaption></figcaption></figure>

#### Adding actions

<figure><img src="https://2212031742-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXyVsBiX9OwOL1o9g5hLM%2Fuploads%2Ft3P5ik2wbTj7MgA4avh0%2F4.5.png?alt=media&#x26;token=9b4926b7-1fe0-48f7-8802-1feb6ca80be9" alt=""><figcaption></figcaption></figure>

1. Verify that you are in the desired branch's window. The background should be pink and you should see "back to pipe" in the top left corner.
2. You can add actions by clicking the "+" button in between steps.

## Only Continue If

#### Initial Set-up

1. Select **Toolbox** as the app.
2. Select **Only continue if...** as the action event.

**Set up action**

<figure><img src="https://2212031742-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXyVsBiX9OwOL1o9g5hLM%2Fuploads%2F3UpCDSwHrqWVG69vKQAE%2F3.png?alt=media&#x26;token=2f70bc14-3842-43cb-9139-f911917d4046" alt=""><figcaption></figcaption></figure>

1. In the "*Field*" input box, select the variable that you want to check.
2. In the "*Is or Is Not*" and "*Condition*" input boxes, configure the logical rule you want to apply.
3. Finally, in the "*Value*" field, input the value that you want to compare the variable against.
4. You can also click the "*And*" button to add more logical rules.

**Test action**

1. Click **Test step**.
2. If the test data **has met** the conditions, you’ll see a confirmation that the Pipe would **have continued**. \
   ![](https://2212031742-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXyVsBiX9OwOL1o9g5hLM%2Fuploads%2FwucTVRppDKYtoD71Egxh%2FScreenshot%202023-07-06%20at%2010.15.29%20AM.png?alt=media\&token=c00c53f2-dad0-4b32-845f-0ef924721003)\
   \
   If the test data **has not met** the conditions, you’ll see a confirmation that the Pipe would **not have continued**. \
   ![](https://2212031742-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXyVsBiX9OwOL1o9g5hLM%2Fuploads%2F3h0SBJbrSzhJhOqLHRdm%2FScreenshot%202023-07-06%20at%2010.16.51%20AM.png?alt=media\&token=da9bb682-60d0-4c0f-9f56-0e2ded29a543)<br>

## Supported comparisons for data types

### All types

1. Equals to
2. Empty

### Text&#x20;

1. Contains

### Number&#x20;

1. Less than
2. Less than or equals to
3. Greater than
4. Greater than or equals to

### Date

1. Before
2. After

<figure><img src="https://2212031742-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXyVsBiX9OwOL1o9g5hLM%2Fuploads%2FCyaVRMBTUtXzikiZDWkr%2Fimage.png?alt=media&#x26;token=e23c968a-43d7-4610-bb58-85ec07855f5c" alt=""><figcaption></figcaption></figure>

Supported date/time formats:

<pre><code><strong>30/12/24 
</strong>30/12/2024 
30 Dec 2024
30 December 2024
2024/12/30
30 Dec 2024 13:30 PM 
30 Dec 2024 13:30:59 PM 
</code></pre>
