Skip to main content
Version: Next

If

Switch data flows based on a condition.

Description

This function switches between 2 data-flows based on the provided condition.

Inputs

  • Condition (Boolean): The condition to test.
  • a (Object): The value to return on true.
  • b (Object): The value to return on false.

Outputs

  • Cond ? a : b (Object): a if Condition is true, b otherwise.