Transform Reference

Conditional Verbs

Branching logic, null/empty handling, multi-way switch, and comparison operators.

VerbSyntaxDescriptionTry It
coalesce%coalesce @p1 @p2 @p3First non-null value Try
ifElse%ifElse @condition @then @elseConditional branch Try
ifNull%ifNull @path @fallbackFallback if null Try
ifEmpty%ifEmpty @path @fallbackFallback if empty string Try
switch%switch @path "v1" "r1" ... defaultMulti-way switch Try
eq%eq @a @bEqual comparison Try
gt%gt @a @bGreater than Try
lt%lt @a @bLess than Try
not%not @pathBoolean 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"