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.

OR<br />

Syntax<br />

expr1 OR expr2<br />

Synonym<br />

!<br />

Description<br />

The OR Boolean operator combines a set of expressions. If expr1 or expr2 is true, the<br />

combined expression is true. Either expression must be true for a true condition.<br />

Example<br />

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

(Y < Z). If either expression is true, the program calls subroutine RETRY.<br />

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

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

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

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

AND, NOTS, OR<br />

OR 1-546

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

Saved successfully!

Ooh no, something went wrong!