How to create a Trigger Condition
The second part of the Dynamic model is creating Trigger Conditions:
- Select the "+ Add Condition" button.
![Screen Shot 2022-06-30 at 11.50.59 AM.png 1600](https://files.readme.io/3dd913d-Screen_Shot_2022-06-30_at_11.50.59_AM.png)
- This will prompt the Text Formula Builder where mathematical operators can be used on the Variables you created previously. You can select the basic formula or the advanced formula:
![Screen Shot 2022-06-30 at 11.54.09 AM.png 1600](https://files.readme.io/40b3e84-Screen_Shot_2022-06-30_at_11.54.09_AM.png)
The basic formula allows agents to create variable logic using dropdowns:
![Screen Shot 2022-06-30 at 11.55.00 AM.png 1600](https://files.readme.io/835b0b8-Screen_Shot_2022-06-30_at_11.55.00_AM.png)
The advanced formula is free-form text:
![Screen Shot 2022-06-30 at 11.56.32 AM.png 1600](https://files.readme.io/b1a6ae2-Screen_Shot_2022-06-30_at_11.56.32_AM.png)
- Let's take a look at the basic formula builder in detail:
![Unit21-DMB-10.png 1293](https://files.readme.io/f6b7fb8-Unit21-DMB-10.png)
All the Variables you previously created are available in the Variables dropdown:
![Unit21-DMB-11.png 1291](https://files.readme.io/f02591c-Unit21-DMB-11.png)
The mathematical operands are available in the Operators dropdown:
![Unit21-DMB-12.png 1293](https://files.readme.io/31f51c6-Unit21-DMB-12.png)
Therefore a formula for basic comparative logic between Variables can be achieved:
![Unit21-DMB-13.png 1293](https://files.readme.io/9b5392c-Unit21-DMB-13.png)
- The logic can be converted to text using the Convert to Text button in the ... menu:
![Unit21-DMB-14.png 1292](https://files.readme.io/8e587c4-Unit21-DMB-14.png)
You can also use this menu to Delete any logic.
- Convert to Text also reveals the Advanced formula builder:
![Unit21-DMB-15.png 1290](https://files.readme.io/8ec6163-Unit21-DMB-15.png)
In text mode, more complicated logic can be created. For example, the Variables can be divided or multiplied:
![Unit21-DMB-16.png 1290](https://files.readme.io/f9a4ae8-Unit21-DMB-16.png)
- Multiple Triggers can be AND'ed or OR'ed together to create a more complicated Formula:
![Unit21-DMB-17.png 1290](https://files.readme.io/55ac744-Unit21-DMB-17.png)
So in the example above, having two trigger conditions:
- A: TransactionVolumeLastWeek / 7 > TransactionVolumeLastMonth / 31
- B: TransactionVolumeLastMonth / 31 > TransactionVolumeLastYear / 365
Selecting And is similar to saying:
- A and B must be met to alert
Selecting Or is similar to saying:
- A or B must be met to alert
You can add as many additional Triggers as you want using the "+Add Condition" button.
Updated 8 months ago