Skip to main content

IF

Returns one value if condition is true, another if false.

CategoryLogical
SyntaxIF(condition, value_if_true, [value_if_false])

Parameters

ParameterRequiredDescription
conditionRequiredThe condition to evaluate (true or false).
value_if_trueRequiredThe value to return if the condition is true.
value_if_falseOptionalThe value to return if the condition is false.

Example

IF(x > 10, "large", "small")
IF(load > 50 kN, load * 1.5, load)

Auto-generated from the EngCanvas function registry.