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

20px-Function.png eq(<integer1>,<integer2>)

Takes two integers, and returns a BOOLEAN (1 if they are equal and 0 if they are not).

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


> say eq(1,-1)

You say "0"

> say eq(5,5)

You say "1"

> say eq(foo, bar)

You say "1"

Related Topics

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