BlocksCompare & Conditions
IP Conditional Compare
Compare IP addresses and branch your flow based on network conditions.
The IP Conditional Compare block is designed for network-based branching. It evaluates an IP address (or the requester's IP) against multiple conditions, such as specific IPs, hashes, or subnets.
Configuration
| Field | Required | Description |
|---|---|---|
| Base IP Value | — | The IP address to compare against. If left empty, the block automatically uses the requester's real IP address. |
IP Comparison Conditions
Add IP Compare Value child blocks to define your matches:
| Field | Required | Description |
|---|---|---|
| Compare IP Value | ✅ | The IP address, hash, or CIDR range (e.g., 192.168.1.0/24) to match. |
| Comparison Type | ✅ | The logic used for matching. Options include: IP Equal To, IP Not Equal To, IP Hash Equal To, IP Hash Not Equal To, and IP Is Same Subnet. |
IP Hashing
If you are using IP Hash Equal To, ensure the value you provide matches the hashed format used by your system.
Else Branch
The Else branch handles all cases where the IP does not match any specified conditions.
Error Handling
MISSING_IP— Triggered when no IP address can be resolved (e.g., no base value and no request IP available).IP_COMPARE_EXECUTION_ERROR— Triggered if an error occurs during the network logic execution.
Example
- Leave Base IP Value empty to target the user's current connection.
- Add an IP Compare Value child:
- Compare IP Value:
10.0.0.0/8 - Comparison Type:
IP Is Same Subnet - Result: This branch triggers for any internal 10.x.x.x traffic.
- Compare IP Value:
- The Else branch automatically handles all other external traffic.
