Module built_in_comparison

Source
Expand description

Suiron’s comparison functions: equal, less_than, greater_than, etc.

The functions defined in this module support Suiron’s built-in arithmetic functions.
They are called from unify_sfunction() in built_in_functions.rs.

Functions§

bip_equal
Compares two strings or two numbers. Succeeds if equal.
bip_greater_than
Compares strings or numbers. Succeeds if first > second.
bip_greater_than_or_equal
Compares strings or numbers. Succeeds if first >= second.
bip_less_than
Compares strings or numbers. Succeeds if first < second.
bip_less_than_or_equal
Compares strings or numbers. Succeeds if first <= second.