If

Get a value conditionally (single condition)

If(true, 1, 0) → 1
If(false,1, 0) → 0

Inputs

If(condition, ifTrue, ifFalse)

  • condition - An expression that outputs true or false

  • ifTrue - A value to output if the condition is true

  • ifFalse - A value to output if the condition is false

Last updated