Difference between revisions of "~="

From WikiManual
Jump to: navigation, search
(creation)
(No difference)

Revision as of 22:53, 20 January 2007

~= 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:

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