~=

From WikiManual
Revision as of 21:53, 20 January 2007 by Sprotiel (talk | contribs) (creation)
(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.42.9).

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:

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