11.04.2013 Views

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

GTS<br />

Syntax<br />

GTS(array1,array2)<br />

Description<br />

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

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

array1 is greater than the value in the corresponding position in array2, and 0 in each<br />

position for values that are less than array2.<br />

Example<br />

In the following example, the program segment compares ARRAY1 to ARRAY2 and<br />

returns ARRAY3. ARRAY3 then contains 1}1}0}0}0.<br />

ARRAY1 = 10:@VM:20:@VM:30@VM:40:@VM:50<br />

ARRAY2 = 9:@VM:10:@VM:30:@VM:50:@VM:60<br />

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

1-327

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

Saved successfully!

Ooh no, something went wrong!