Skip to content

Control

If

If(condition: boolean, then: any, else: any) -> any

Picks then or else by condition. Both branches are evaluated.

output label = If(72 >= 60, "Pass", "Fail")
label
"Pass"

IsSet

IsSet(value: any) -> boolean

True when value is not null.

output found = IsSet(Find([1, 2, 3], item => item > 5))
found
false

Default

Default(value: any, fallback: any) -> any

The value, or fallback when the value is null.

output first = Default(Find([1, 2, 3], item => item > 5), 0)
first
0