Operators
Built-in comparison operators
Comparison Operators
#equals(value)- Exact match (case-insensitive for strings)#contains(value)- String or array contains value#matches(regex)- Regex pattern match#one_of(a,b,c)- Value in comma-separated list
Numeric Operators
#greater_than(n)or#gt(n)#less_than(n)or#lt(n)#gte(n)/#lte(n)- Greater/less than or equal#exists- Variable is defined and not empty
Example: Order Support Agent
order-support.echo
You are a support agent handling order inquiries.
[#IF {{user.role}} #one_of(admin,support_lead)]
**Agent Powers:** You can issue refunds up to $500 and override shipping policies.
[END IF]
[#IF {{order.status}} #equals(shipped)]
The order has shipped. Tracking: {{order.tracking_number}}
[END IF]
[#IF {{order.total}} #gt(100)]
This is a high-value order. Prioritize resolution and consider goodwill gestures.
[END IF]
[#IF {{customer.notes}} #exists]
**Previous notes about this customer:**
{{customer.notes}}
[END IF]