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.

$ZBOOLEANWRITE $ZBOOLEAN("a",$CHAR(95),1)displays A.The following examples illustrate logical OR:WRITE $ZBOOLEAN(1,0,7)displays 1.WRITE $ZBOOLEAN(1,1,7)displays 1.WRITE $ZBOOLEAN(2,1,7)displays 3.WRITE $ZBOOLEAN(2,2,7)displays 2.WRITE $ZBOOLEAN(3,2,7)displays 3.The following logical OR examples demonstrate the difference between string comparisonsand number comparisons:WRITE $ZBOOLEAN(64,255,7)compares the two values as numbers and displays 255.WRITE $ZBOOLEAN("64","255",7)compares the two values as strings and displays 65.WRITE $ZBOOLEAN(+"64",+"255",7)the plus signs force the comparison of the two values as numbers, and displays 255.The following examples illustrate exclusive OR:WRITE $ZBOOLEAN(1,0,6)displays 1.WRITE $ZBOOLEAN(1,1,6)displays 0.<strong>Caché</strong> <strong>ObjectScript</strong> <strong>Reference</strong> 519

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

Saved successfully!

Ooh no, something went wrong!