Comparing numbers is a widespread use of predicates in OM. Predicates dedicated to the comparison of numbers can be found in the Predicates
menu item of the Functions / OM Kernel / Control
menu.
Here is a list of OM and Lisp predicates. Like other functions, they can also be added in a patch editor by typing their name directly. Equivalent Lisp predicates can be added directly in a patch editor.
OM Predicate |
Written |
Lisp Predicate |
Written |
Test |
---|---|---|---|---|
|
OM= |
|
= |
A equal to B ? |
|
OM/= |
|
/= |
A different from B ? |
|
OM< |
|
/= |
A inferior or equal to B ? |
|
OM>= |
|
>= |
A superior or equal to B ? |
|
OM> |
|
<= |
A inferior to B ? |
|
OM> |
|
< |
A superior to B ? |