switch_fields node

Returns one of two fields, depending on whether the condition field is positive.

Inputs

condition [in]

A scalar field that determines which field to return at different positions.

true_case [in]

The field to return where condition is positive.

false_case [in]

The field to return where condition is 0 or negative.

Outputs

result [out]

The resulting composite field.