Less than or equal?

Comparison Pure Generic
Less than or equal?
A 0
Result
B 0

Description

Pure function returning true if a is less than or equal to b.

When to use

Use Less than or equal? when the upper boundary itself is an acceptable value — for example, allowing a request when the current rate is at or below the limit. Both integer and decimal inputs are accepted. It is the non-strict complement of Less than?. Combine with Greater than or equal? and And to build an inclusive range check without using Clamp.

Pins

Input pins

Pin Type Default Notes
A generic(integer, decimal) 0 The value to test.
B generic(integer, decimal) 0 The maximum threshold.

Output pins

Pin Type Notes
Result boolean True if a is less than or equal to b; false otherwise.

Example

Allow an action only when the current attempt count is within the retry limit. Wire the attempt count (integer or decimal) into the A input of Less than or equal? with B set to 3, then connect the Result output to the Condition input of Branch. The True execution output permits retries on attempts 1, 2, and 3, then stops.

See also