Lt()

From TinyMUX
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.


lt(<integer1>,<integer2>)

Takes two integers, and returns a BOOLEAN (1 if and only if <integer1> is less than <integer2>, and 0 otherwise).

Note: Passing anything but integers will produce unexpected results, as non-numeric strings usually are treated as numeric 0.

Example

> say lt(4,5)

You say "1"

> say lt(5,5)

You say "0"

> say lt(6,5)

You say "0"

> say lt(foo, bar)

You say "0"

Related Topics

BOOLEAN VALUES, lte(), gte(), gt(), eq(), neq()