~=

From WikiManual
Revision as of 23:43, 26 January 2007 by Sprotiel (talk | contribs) (update)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

~= and !~= are custom approximate equality operators. They are deprecated and of little use in writing bots but appear in evolved bots (as of version 2.43).

a b c ~= places true on the condition stack whenever b is within c % of a !~= returns the opposite of ~= and is equivalent to ~= not.

Example
50 150 200 ~= is true and 50 151 200 ~= is false

Logical Comparison Operators:

> <
>= <=
= !=
%= !%=
~= !~=