From the course: Learning Grasshopper

Unlock the full course today

Join today to access over 22,500 courses taught by industry experts or purchase this course individually.

How to use comparator components in Grasshopper

How to use comparator components in Grasshopper

From the course: Learning Grasshopper

Start my 1-month free trial

How to use comparator components in Grasshopper

- [Instructor] In this video, we'll talk about how to use comparator components in Grasshopper. Comparators do just what they sound like, they compare. Specifically, they compare two numbers to each other. You'll find these under the maths component tab in the operator sub panel. So, we'll take a look at equality, larger than, smaller than, or similarity. You can see in our exercise file we've got a couple of number sliders that will connect to each comparator. So first, we'll take a look at equality or equals, which compares two numbers, A and B, to determine whether they are exactly equal to one another. So we're taking these two sliders as inputs, and equality gives us outputs of Boolean values, so those are true or false values. And we have two of these, one for whether the numbers are equal to each other, and one for whether the numbers are not equal to each other. So right now, I have 24 and 19 as my inputs. So, I…

Contents