Let’s take a look at a very simple conditional statement that a program might interpret: If the object is a curve, delete it.The piece of code first looks at an object and determines a single boolean value for whether or not it is a curve. The boolean value is True if the object is a curve, or False if the object is not a curve.
The Larger Than component will take two lists of data and determine if the first item of List A is greater than the first item of List B.
The two outputs allow you to determine if you would like to evaluate the two lists according to a greater than (=) condition.
Similarly, the two outputs let you determine if you would like to evaluate each list according to a less than ( We have already shown that we can use an Expression (or Evaluate) component to evaluate conditional statements as well as compute algebraic equations.
However, there other ways to calculate simple expressions using a few of the built in Trigonometry functions.
In mathematics, numbers are organized by sets and there are two that you are probably familiar with: Integer Numbers: […, -5, -4, -3, -2, -1, 0, 1, 2, 3, 4, 5, …] Real Numbers: [8, …, -4.8, -3.6, -2.4, -1.2, 0.0, 1.234, e, 3.0, 4.0, …, 8] While there are other types of number sets, these two interest us the most because Grasshopper uses these extensively.