~=

From WikiManual
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:

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