Testing for a range of numbers

Image

If you want to detect when a number has occurred that fits within a particular range, you’ll want to use “logical operators” to test conditions such as “is less than”, “is less than or equal to” or “is greater than this and less than that”. Most logical operators send out the number 1 (meaning “true”) if the condition is met, and 0 otherwise. The split object sends out its left outlet all input numbers that fall within a specified minimum and maximum, and sends the rest of its input numbers out the right outlet. The “and” operator && sends out a 1 if both of its inputs are true (non-zero), and 0 otherwise.