Skip to content

IsMore

Name - Description Default Type
<input> Any
<output> Bool
Value The value to test against for equality. 0 Any

Details

This shard compares the input to its :Value parameter and outputs true if the input value is more than the value of its :Value parameter, else it outputs false.

For a valid comparison, the input and :Value parameter must have identical data types. A comparison across different data types will throw a validation error.

This shard can be used to compare simple data types like stings, integers, floats, etc. However, complex data types like sequences or tables cannot be meaningfully compared for the lesser-than/greater-than attribute. Using this shard on such complex data types will give unexpected and meaningless results.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
;; string comparison
"z" (IsMore "a")
(Assert.Is true :Break true)

;; integer comparison
5 (IsMore 2)
(Assert.Is true :Break true)

;; float comparison
5.0 (IsMore (+ 1.0 3.0))
(Assert.Is true :Break true)