# Range 1.0.5+

# TC\ComponentLibrary\Option\Range

A set of callback functions to check ranges of settings values. The range boundaries are indicated directly in the function name. To include boundaries in a range, you need to add OrEqualTo to the function name.

# between

Checks whether the specified value is within the specified range.

# Examples

TC\ComponentLibrary\Option\Range::between-10And10             // Checks if the value is between −10 and 10.
TC\ComponentLibrary\Option\Range::betweenOrEqualTo-10And10    // Checks whether the value is between −10 and 10, inclusive.

# lessThan

Checks that the specified value is less than the specified maximum.

# Examples

TC\ComponentLibrary\Option\Range::lessThan10             // Checks that the given value is less than 10.
TC\ComponentLibrary\Option\Range::lessThanOrEqualTo10    // Checks that the given value is less than or equal to 10.

# greaterThan

Checks that the specified value is greater than the specified minimum.

# Examples

TC\ComponentLibrary\Option\Range::greaterThan10             // Checks that the given value is greater than 10.
TC\ComponentLibrary\Option\Range::greaterThanOrEqualTo10    // Checks that the given value is greater than or equal to 10.