11.04.2013 Views

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

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.

EQS<br />

Syntax<br />

EQS(array1,array2)<br />

Description<br />

The <strong>UniBasic</strong> EQS function compares each value in array1 to its corresponding<br />

value in array2. UniData returns an array with 1 in each position where values are<br />

equal, and 0 in each position for values that are not equal.<br />

Example<br />

In the following example, the program segment compares ARRAY1 to ARRAY 2<br />

and returns ARRAY3. After EQS, ARRAY3 contains 1}1}1}0}0.<br />

ARRAY1 = '11':@VM:'12':@VM:'13':@VM:'20':@VM:'21'<br />

ARRAY2 = '11':@VM:'12':@VM:'13':@VM:'19':@VM:'22'<br />

ARRAY3 = EQS(ARRAY1,ARRAY2)<br />

EQS 1-261

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

Saved successfully!

Ooh no, something went wrong!