members_if

Returns a struct (vector or matrix) where the members are selected from two other structs based on a Boolean struct.

Example

A node with a bool3 (True, False, False) connected to the condition port, a float3 (3.0, 4.0, 5.0) connected to the true_case port, and a float3 (9.0, 8.0, 7.0) connected to the false_case port returns a float3 with the value (3.0, 8.0, 7.0).

Inputs

condition

A Boolean struct value used to select a corresponding member value from either the true_case or false_case port.

true_case

A struct containing the values to take whenever the condition is true.

false_case

A struct containing the values to take whenever the condition is false.

Output

output

A struct containing the final selection.