
In a math expression, if a Double or Float input slot is linked to a source StatusNumeric output with a “null” value, the input is evaluated as “nan” (not a number). If the expression has a Double or Float slot as output, the result is also nan, as shown. This also occurs if such an input has a nan.
Note if the input slot is an Integer or Long type, the expression ignores the null value—the last valid value is used (or
if nan input, is processed as value 0). The output is some number. If an input slot is a StatusNumeric (requires expression
syntax inputSlotName.value), a null input is seen but not processed.
In a logic expression, if a Boolean input slot is linked to a source BooleanNumeric output with a “null” value, the null is
ignored by the expression—the last valid value is used. If the input slot is a StatusBoolean type (again, syntax inputSlotName.value is required), the null is seen but not processed.
The Expr component utilizes the automatic “conversion links” feature introduced in
In general, if creating an Expr component for use in control logic that may have one or more “null” inputs, it is recommended that you test it to verify the desired behavior.