Lesson Guide: Advanced Condition Nodes & Multi-Rule Logic
In this lesson, we will upgrade our conditional routing by evaluation multiple variables simultaneously. You will learn how to use AND operators to chain logic rules together, create multiple execution branches within a single Condition Node, and handle default fallback scenarios using the Else path.
Logic Strategy Overview
We are classifying Salesforce accounts into three distinct options using two fields: Number of Employees and Number of Locations.
| Employee Count | Office Locations | Target Classification |
| $\ge 100$ | $> 1$ | Large Multilocation |
| $< 100$ | $> 1$ | Small Multilocation |
| Any other case | Any other case | Single Location |
Step 1: Add a Second Segment (AND Logic) to Rule 1
Instead of checking just one requirement, let’s configure our first rule to check two.
-
Open your existing Noca Flow from the previous lesson.
-
Click on your Condition Node to open the properties panel on the right.
-
Select your first rule (formerly more than 100).
-
Click Add Segment to create a second criteria block inside this same rule.
-
Set the Join Operator to AND (meaning both conditions must evaluate to true to pass).
-
Open your Data Kit, find the
Number of Locationsfield from your Read Node, and drag it into the top section of your new segment. -
Change the operator to Greater than ($>$) and set the value to
1. -
Update the associated Salesforce Update Node to map
Company Sizeto Large Multilocation.
Step 2: Create a Second Rule Branch
A single Condition Node can manage multiple custom rules before hitting the final “Else” statement. Let’s add our second track.
-
In the Condition Node panel, click Add Rule.
-
Name this new rule branch
less than 100. -
Configure the first segment of this rule: drag
Number of Employees, set the operator to Less than ($<$), and enter100. -
Click Add Segment and ensure the Join Operator is set to AND.
-
Drag
Number of Locationsinto this segment, set the operator to Greater than ($>$), and enter1.
Step 3: Rewire the Canvas Connections
Now we need to visually map our new logic rule to its corresponding actions.
-
Disconnect the old link feeding into your second update node.
-
Click and drag a new connection line directly from your newly created
less than 100rule output over to your second Update Node. -
Open this Update Node and change the
Company Sizemapping value to Small Multilocation.
Step 4: Configure the Fallback (Else) Path
The Else path captures any scenario that doesn’t perfectly fit into Rule 1 or Rule 2 (e.g., companies that only have 1 single location).
-
Add a brand new Salesforce Update Action node onto the canvas.
-
Link the remaining Else output pin of your Condition Node directly to this new node.
-
Inside the configuration panel, choose the Account object.
-
Set the mapping for
Company Sizeto Single Location. -
Set the required record validation condition:
Account ID$=$ your Project VariableAccount ID.
Step 5: Save and Test Your Multi-Branch Automation
Test 1: Testing the Single Location (Else) Path
-
Open your Read Node, and set the lookup condition to
Dickinson PLC(12 employees, 1 location). -
Click Save and Run.
-
Result: Because it fails both rules (having only 1 location), you will see the flow take the bottom Else path. Check Salesforce to confirm it now reads Single Location.
Test 2: Testing the Large Multilocation Path
-
Click Edit Flow and change your Read Node condition to search for
Edge Communications(1,000 employees, multiple locations). -
Click Save and Run.
-
Result: The data validates both segments of Rule 1, sending the execution down the top path. Check Salesforce to confirm it successfully updates to Large Multilocation.
Key Takeaways
-
Join Operators: Use AND when all segments in a rule must be met; use OR if satisfying any single segment is enough.
-
Multi-Branch Routing: You can stack multiple distinct rules inside a single Condition Node to cleanly split your business logic into 3, 4, or more distinct operational paths.
Ready to take your flows a step further? Join us in the next lesson where we will dive into using the Switch Node for handling complex structural shifts!