[Grasshopper] How to use Smaller Than to determine values smaller than a specified number

[Grasshopper] How to use Smaller Than to determine values smaller than a specified number Grasshopper component EN

This article explains how to use Smaller Than to determine values smaller than a specified number.

Smaller Than1
Smaller Than2

On the Grasshopper, it is represented by either of the two above.


↑Youtube Channel

Determine values smaller than the specified number

Using Smaller Than allows you to identify values smaller than a specified number.

Determine values smaller than the specified number

Components Used: ①Smaller Than

Enter the value you wish to compare into the Smaller Than(A).

This time, we are inputting 11 values ranging from 0 to 10.

Enter the reference value into the Smaller Than(B).

This time, we are entering 5.

Then, the right-hand terminal outputs the specified value less than 5 as True and 5 or greater as False.

The right-hand <= terminal outputs True for specified values of 5 or less, and False for values greater than 5.

Using this True and False data allows you to identify values smaller than the specified number.

Usage Examples

For example, let’s try conditional branching using the True and False information output from Smaller Than.

Usage Examples

Components Used: ①Construct Point ②Smaller Than ③Dispatch ④Point

points

Connect the 11 values from 0 to 10 to the Construct Point(Z).

Then, as shown in the image above, points are created at the coordinates 0,0,0 to 0,0,10.

Then, as before, input the 11 values from 0 to 10 into the Smaller Than(A).

Also, enter 5 into the Smaller Than(B).

Then, just as before, the Smaller Than terminal outputs True for values less than 5 and False for values 5 or greater.

Then, connect the Construct Point to the Dispatch(L).

Also, connect the Smaller Than(<) to the Dispatch(P).

Using Dispatch allows you to perform conditional branching with True and False.

Then, connect the Point to the Dispatch(A and B).

Dispatch(A)

The Dispatch(A) output points with a True height less than 5.

Dispatch(B)

The Dispatch(B) output points with a True height of 5 or greater.

In this way, you can obtain the determined value by using the True and False information output from Smaller Than.

List of Grasshopper articles using Smaller Than component↓

Comment

Translate »