From TinyMUX
Jump to: navigation, search

FUNCTION: 20px-Function.png lte(<integer1>,<integer2>)

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

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


> say lte(4,5)

You say "1"

> say lte(5,5)

You say "1"

> say lte(6,5)

You say "0"

> say lte(foo, bar)

You say "1"

Related Topics

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