Skip to content

IsLess

Name Mandatory Description Default Type
⬅️ Input Input of any type is accepted. Any
Output ➡️ Outputs true if the input is less than the operand and false otherwise. Bool
Value No The value to check against. 0 Any

Checks if the input is less than the operand.

Details

This shard compares the input to its :Value parameter and outputs true if the input value is less 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
; string comparison
"a" | IsLess("z") | Assert.Is(true Break: true)

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

; float comparison
2.0 | IsLess(4.0) | Assert.Is(true Break: true)