SPLat Logo

Compare

NOTICE: Our web site is being updated, but is currently experiencing extreme slowness due to host issues. Please contact us directly.
NOTICE: SPLat Controls has moved. We are now at 1/85 Brunel Rd, Seaford, 3198. map

Compare

Compare makes a numeric comparison between X and Y, and leaves a result code in X.

The result codes are:

X vs Y Code
X=Y 0
X>Y 1
X<Y 2

The original X and Y values are Popped off the register stack.

Dialect restriction: Compare is implemented only in dialects 4 or later.

See also CompareR, fCompareR