comp package
Description
The 'comp' package is a set of boolean-returning functions for comparing two values (excluding the 'not' function)
- 7 functions
All functions (excluding the 'not' function) in this package follow the same format:
[functionName] [valueX] [valueY]
valueX
and valueY
are the two values being compared. The comparison operator appears between the two values, for example:
valueX = valueY
valueX > valueY
valueX >= valueY
The comparison operators are defined by the following functions:
Equals (x == y)
eq [valueX] [valueY]
Less than (x < y)
lt [valueX] [valueY]
Greater than (x > y)
gt [valueX] [valueY]
Not equal (x != y)
ne [valueX] [valueY]
Less than or equal (x <= y)
le [valueX] [valueY]
Greater than or equal (x >= y)
ge [valueX] [valueY]
Not
The 'not' function returns the opposite of an imported boolean.
not [boolean]