Gte()

From TinyMUX
Revision as of 00:50, 14 August 2006 by Mark (talk | contribs) (Init page.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


gte(<integer1>,<integer2>)

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

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

Examples

> say gte(4,5)

You say "0"

> say gte(5,5)

You say "1"

> say gte(6,5)

You say "1"

> say gte(foo, bar)

You say "1"

Related Topics

BOOLEAN VALUES, lt(), lte(), gt(), eq(), neq().