If condition
  • 20 Jun 2022
  • 1 Minute to read
  • Dark
    Light
  • PDF

If condition

  • Dark
    Light
  • PDF

Evaluates the given condition. If it is truthy, the first output is triggered. If not (falsy), the second output is triggered.

Input arguments

Label Key Type Required? Default Description
Condition condition Boolean Yes Condition to evaluate.

Usage

IF(condition, trueValue, falseValue)

Logical Operators

Operation Usage Description
AND ( && ) a && b is true if both a and b are true.
OR ( || ) a || b is true if either a or b is true.
NOT ( ! ) !a is true if a is not true.

Output arguments

Number of outputs: 2

  • trueValue

Returned if the condition is truthy.

  • falseValue

Returned if the condition is falsy.

Events

No events.

Errors

No errors.


Was this article helpful?

What's Next