[Request for Feedback] Refactored the "If" Node

@Steven the old If node used the following DesignScript code under the hood:
result = test_condition ? truevalue : falsevalue;
This DS conditional statement replicates over all 3 inputs, namely, test_condition, truevalue, and falsevalue.
The new If node, uses the following DS code under the hood:
[truevalue, falsevalue][test_condition ? 0 : 1];
This new code does not replicate over truevalue or falsevalue but continues to replicate over test_condition.
So to answer your question, the original DS conditional statement has not changed in behaviour. We have only replaced the underlying guts of the If node to make it more intuitive.

4 Likes