Join Jeremy Graham for an in-depth discussion in this video Logical operators, part of Dynamo for Revit: Python Scripting.
- [Instructor] While comparison operators…are good at comparing values,…logical operators allow us to compare booleans.…This becomes very useful…when comparing two or more different value comparisons.…So for example, say we had a sphere in Dynamo,…and we wanted to check if the sphere's radius…was above a certain number,…but also positioned above a particular z-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 you want to check…if two boolean operations or booleans…are equal to 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 and therefore the result will be true.…As when comparing two booleans with the AND operator,…two trues will always result in a true.…
Note: This course uses Dynamo 1.3.1 and Revit 2018. For best results, it helps to have the same versions of the software.
- Importing the Dynamo Geometry library
- Defining variables
- Making decisions with conditionals
- Controlling flow with operators
- Defining functions
- Working with external libraries in Python
- Accessing the Revit API with Python
Skill Level Beginner
1. Dynamo and Python
2. Python Basics
3. Working with Libraries
4. Revit API
Next steps2m 18s
- 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.