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.

the length of arg1, then arg2 is repeatedly combined with successive substrings of arg1 inleft to right fashion.$ZBOOLEAN always interprets the numeric value as a series of bytes in little-endian order,with the low-order byte first, no matter what the native byte order of your machine is.Internal Structure of $ZBOOLEAN Values$ZBOOLEANThe following table lists the internal rules for $ZBOOLEAN. You do not need to understandthese rules to use $ZBOOLEAN; they are presented here for reference purposes only.There are four possible states of any two bits being compared from within arg1 and arg2. TheBoolean operation generates a true result (=1) if and only if bit_op has the bit mask shownin the table.Bit in arg1Bit in arg2Bit Mask in bit_opDecimalBit Mask in bit_op Binary0081000014010010200101110001EQV and IMP Logical Operators$ZBOOLEAN does not directly support EQV and IMP logical operators. These can be createdby combining simpler logical operations. These logical operators are defined as follows:• EQV is a logical equivalence between two expressions. It is logically identical to ((~arg1)& (~arg2)) ! (arg1 & arg2).• IMP is a logical implication between two expressions. It is logically identical to ~((~arg1)! arg2).See Also• ZZDUMP command• Operators in Using <strong>Caché</strong> <strong>ObjectScript</strong><strong>Caché</strong> <strong>ObjectScript</strong> <strong>Reference</strong> 521

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

Saved successfully!

Ooh no, something went wrong!