Previous Topic

Next Topic

Book Contents

Book Index

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

Previous Topic

Next Topic