11.07.2015 Views

Caché ObjectScript Reference - InterSystems Documentation

Caché ObjectScript Reference - InterSystems Documentation

Caché ObjectScript Reference - InterSystems Documentation

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

System and Other Functionsnumbers, it performs a logical AND and OR operation on the entire number as a unit. Toforce the evaluation of a numeric string as a number, preface the string with a plus sign (+).The bitwise operations includes 16 possible Boolean combinations of arg1 and arg2. Thefollowing table lists these combinations.Bit Mask inbit_op0123456789101112131415Operation Performed0arg1 & arg2 (logical AND)arg1 & ~arg2arg1~arg1 & arg2arg2arg1 ^ arg2 (logical XOR (exclusive or))arg1 ! arg2 (logical OR (inclusive or))~(arg1 ! arg2)~(arg1 ^ arg2)~arg2 (logical NOT)arg1 ! ~arg2~arg1 (logical NOT)~arg1 ! arg2~(arg1 & arg2)-1 (one's complement of 0)Where:& is logical AND! is logical OR~ is logical NOT^ is exclusive ORFor further details, see Operators in Using <strong>Caché</strong> <strong>ObjectScript</strong>.516 <strong>Caché</strong> <strong>ObjectScript</strong> <strong>Reference</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!