Booleans can be compared with one another by using logical operators. In this video, learn about the logical operators AND, OR, and NOT to understand how to write scripts to compare multiple comparison operations by comparing Booleans.
- In an earlier video, we learned how to use…comparison operators to compare two different values.…But what if we wanted to compare two booleans…or boolean expressions…to determine if they were true or false?…We can with logical operators AND and OR,…which allows to two boolean values.…This becomes very useful when comparing two or more…different comparison operations.…So for example, say we had a box in Grasshopper…and we wanted to check if the box's surface area…was above a certain number,…but also if it's volume did not exceed a certain value.…
We could check these two conditions at once…to see if both were true or both were false…using logical operators.…Let's start with having a look at what the AND operator is.…AND operators are useful if we want to check if…two booleans are true.…Say for example we had two operations.…Two is greater than one, and one is less than five.…As we have learned,…both of these operations will equal true.…If we compare these two operations,…we're essentially comparing true and true as both equal true…
- Python components
- Accessing the Rhino API
- Python programming basics
- Importing modules and libraries
- Grasshopper workflows
- Evaluating surfaces
- Creating and splitting surfaces
- Transforming geometry
- Baking geometry from Python into Rhino
- Adding text objects
- Exporting rendered frames for animation
Skill Level Intermediate
1. Working with Python
2. Python Basics
3. Importing Modules and Libraries
4. Grasshopper Workflows
Next steps3m 53s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.