Skip to main content

If

Module Info:

moduleType: "internal",
moduleName: "if"

Description

The if function receives a boolean and two other values and returns one or the other wether the given boolean is true or false. Optionally, you can also input functions instead of static values.

Inputs

NameTypeRequired
booleanboolean
ifTrueany
ifFalseany

Outputs

NameType
outputValueany

Examples

Inputs Outputs
boolean ifTrue ifFalse outputValue
true "foo" 15 "foo"
false "foo" 15 15