The Evaluate block functions similarly to the Condition block, if the evaluation criteria are met, the true flow is triggered; otherwise, the false flow is triggered.
Mathematical Operations with Evaluate Block
The Evaluate block allows mathematical operations on variables. Here are the typical operations you can perform:
Addition:
<Variable> + <Variable>
<Variable> + <Static Value>
Subtraction:
<Variable> - <Variable>
<Variable> - <Static Value>
Multiplication:
<Variable> * <Variable>
<Variable> * <Static Value>
Division:
<Variable> / <Variable>
<Variable> / <Static Value>
Modulus:
<Variable> % <Variable>
<Variable> % <Static Value>
Greater Than or Less Than:
<Variable> > <Variable> or <Static Value>
<Variable> < <Variable> or <Static Value>
Typical Use Cases
1. Flow Splitting Based on Order Value:
Example: (Order[total] * 0.05) > 100
Split the flow based on whether 5% of the order total exceeds 100.
2. Defining Discounts:
Calculate and apply discounts based on the order value.
3. Time-Based Flow Actions:
Check the current time and split the flow or perform actions accordingly.
Steps to Add Evaluate Block.
1. Open the Flow: Navigate to the flow where you want to add an Evaluate block.
2. Select the Evaluate Block: In the Flow Control tab, select the Evaluate block
3. Add the Evaluation : Click on the block to add the desired Evaluation. You can add more than such evaluations.
These expressions are also validated from our end and show invalid error if the expression is not valid.
4. Connect the Message Blocks: After adding the Evaluation, two nodes will appear for you to connect the message blocks:
Evaluation Case: This node triggers if the expression is true.
False Case: This node triggers if the expression is false.
FAQs
1. Can I use multiple evaluation blocks in a single flow?
Yes, you can use multiple evaluation blocks in a single flow to handle various scenarios and create complex, customized journeys for your users.
you can also use multiple expressions in a single block.
2. Can I edit the expression in an evaluation block after it has been added?
Yes, you can edit the expression in an evaluation block at any time by clicking on the block and modifying the criteria.
3. What happens if the expression is not met?
If the expression is not met, the flow will proceed through the "False" node, triggering the associated message block for that path.
For further assistance or to raise feature requests related to Evaluation block, please contact [email protected]