Transform Reference
Conditional Verbs
Branching logic, null/empty handling, multi-way switch, and comparison operators.
| Verb | Syntax | Description | Try It |
|---|---|---|---|
| coalesce | %coalesce @p1 @p2 @p3 | First non-null value | Try |
| ifElse | %ifElse @condition @then @else | Conditional branch | Try |
| ifNull | %ifNull @path @fallback | Fallback if null | Try |
| ifEmpty | %ifEmpty @path @fallback | Fallback if empty string | Try |
| switch | %switch @path "v1" "r1" ... default | Multi-way switch | Try |
| eq | %eq @a @b | Equal comparison | Try |
| gt | %gt @a @b | Greater than | Try |
| lt | %lt @a @b | Less than | Try |
| not | %not @path | Boolean negation | Try |
Examples
Conditional verb examples
phone = %coalesce @mobile @home @work ; First non-null
status = %ifElse @is_active "A" "I" ; true->"A", false->"I"
state = %ifNull @policy.state "TX" ; null->"TX"
status_text = %switch @code "A" "Active" "P" "Pending" "Unknown"