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.

AND<br />

Syntax<br />

expr1 AND expr2<br />

Synonym<br />

&<br />

Description<br />

The AND Boolean operator combines a set of expressions. If expr1 or expr2 is false,<br />

the combined expression is false. Both expressions must be true for a true condition.<br />

Example<br />

In the following example, the program segment combines two expressions (X < Y)<br />

and (Y < Z). Both expressions must be true for the program to call subroutine<br />

RETRY.<br />

1-104 <strong>UniBasic</strong> <strong>Commands</strong> <strong>Reference</strong><br />

X = 1 ; Y = 2 ; z = 3<br />

IF (X < Y) AND (Y < Z) THEN GOSUB RETRY:<br />

Related <strong>Commands</strong><br />

<strong>UniBasic</strong><br />

NOT, OR

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

Saved successfully!

Ooh no, something went wrong!