[Grasshopper] How to use Boolean Toggle to output True or False

How to use Boolean Toggle to output True or False Grasshopper component EN

This article explains how to use Boolean Toggle to output True or False.

Boolean Toggle

This is the Boolean Toggle component.


↑Youtube Channel

A switch that can be set to True or False

Boolean Toggle is like a switch that can be set to True or False.

Simply put, it is like an on/off switch.

False

A False condition will output the word False.

True

If it is True, the word True is output.

How to use Boolean Toggle

Let’s look at an example of how to use the Boolean Toggle.

mark

In this example, Polyline will be used.

When you hover the cursor over the Polyline(C), you will see a mark like this.

In many cases, the Boolean Toggle can be used when this symbol is present.

example

First, let’s connect them with False.

The Polyline allows you to create a line from multiple points.

line

Create points on Rhinoceros and set the points in a Point.

Then Points are connected with the Polyline.

In this case, the initial value is False, so just a line is created.

True

Next, let’s set it to True.

closed

The result of setting the Boolean Toggle to True is that the open line is now closed.

Thus, we can see that the Boolean Toggle acts like a switch that either sets the line to a certain state or not.

How not to use the Boolean Toggle

How not to use the Boolean Toggle

You can do the same thing without using the Boolean Toggle.

It is to type True/False in the Panel and connect them together.

This time, True is connected.

same result

The result is the same as for the Boolean Toggle.

This is because the Boolean Toggle just toggles between the characters False and True.

List of Grasshopper articles using Boolean Toggle component↓

Comment

Translate »