“If then else” in GH

A common question I get is: how to replicate a “if then else” statement in Grasshopper. Here is my take.

ifElse

Explanation: if “First Number” is larger than “Second Number”, then output A, else output B.

Or: if (FirstNumber>SecondNumber) {A} else {B}



All content © Copyright 2017 by Pedro de Azambuja Varela.
Subscribe to RSS Feed