Repository navigation
node compare
< Previous: Vector Math | Next: Switch >
Ask a question about a number and get a true or false back.
Category: Data | Add menu: Data > Compare
- A (number, editable): the value being asked about.
- B (number, editable): what to measure it against.
- Operator: a pulldown, set to Less Than until you change it. Less Than, Less or Equal, Equal, Not Equal, Greater or Equal, Greater Than. Wire something in and the node graph picks the operator instead.
- Tolerance (number, editable, default 0.001): how close counts as equal.
- Condition (boolean): the answer.
The question half of a decision. On its own it just answers; wired into Select by Condition it becomes a filter, so you can sort geometry by a measurement rather than by hand.
A and B each take a list as well as a single number, so feeding a per-item measurement against one constant answers the question once per item and hands back a list of answers.
Comparing computed numbers for exact equality is a trap: two values that should match often differ in the last decimal place. Tolerance is the slack that makes Equal usable. It applies to Equal and Not Equal only, and it is the same slack either way, so Not Equal is exactly the opposite of Equal.
< Previous: Vector Math | Next: Switch >
Found a bug or have feedback? Open an issue | Docs home | Videos | Credits
Getting Started
- Welcome
- How Locus came to be
- Videos
- Community & support
- Installing & launching
- Licensing & activation
- Beta License Agreement
- Core concepts
- Interface tour
- Your first pattern
Modeling - Drawing
- Canvas basics
- Points
- Typing coordinates
- Lines, rays & segments
- Circles & arcs
- Ellipses
- Compass & straightedge
- Rectangles & squares
- Constraining with Shift
Modeling - Editing
- Selecting objects
- Transform tools
- Align & distribute
- Duplicate, detach & ownership
- Regions & booleans
- Cleanup
- Weld & seams
- Style palettes & Re-ink
Annotation
Layers
Modeling Menus
- File
- Edit
- View
-
Draw
- Select
- Point
- Segment
- Line
- Ray
- Circle: Center Point
- Circle: Center Radius
- Circle: Through 3 Points
- Arc: Center, Start, End
- Straightedge
- Compass
- Compass: Radius
- Ellipse: Center + Axes
- Elliptical Arc
- Rectangle: XY-Aligned
- Rectangle: Directed
- Square
- Regular Polygon: Edge
- Regular Polygon: Center, Vertex
- Regular Polygon: Center, Edge Midpoint
- Dimension: Linear
- Dimension: Angle
- Dimension: Radial
- Label
- Construct
- Combine
- Transform
- Select
- Nodes
The Nodes Window
- Basics of visual programming
- How the node graph works
- Sockets & wires
- Adding & connecting nodes
- Sliders & number inputs
- Keeping the node graph tidy
- View menu (Nodes)
- Lists & collections
- Constants & unit conversions
Node Library
- Overview
- Input
-
Primitives
- Point
- Point: Polar
- Segment
- Line
- Ray
- Circle: Center Point
- Circle: Center Radius
- Circle: Apollonius
- Circle Tangent to...
- Circle: 3 Points
- Arc
- Ellipse
- Elliptical Arc
- Rectangle: XY-Aligned
- Rectangle: Directed
- Square
- Regular Polygon: Edge
- Regular Polygon: Center
- Rectangular Grid
- Oblique Grid
- Triangular Grid
- Construct
- Transform
- Image & Fields
- Combine
-
Data
- Measure
- Numbers
- Lists
- Select
- Clean up
- Display
Clusters
Bridging Modeling & Nodes
Patterns & Symmetry
Image-Driven Fields
Saving, Exporting & Files
Preferences & Language
CLI
Reference
