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.

Example<br />

In the following example, the program segment prints 1 and -1 on the terminal screen<br />

because the HUSH command enables the terminal (A + B evaluates to 0). The second<br />

PRINT statement produces nothing on the screen because HUSH ON is set. The third<br />

PRINT command prints C = 1 on the screen because terminal output is enabled.<br />

A = 1; B = -1<br />

HUSH A + B<br />

PRINT A,B<br />

HUSH ON<br />

PRINT A + B<br />

HUSH OFF SETTING C<br />

PRINT "C = ":C<br />

HUSH 1-332

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

Saved successfully!

Ooh no, something went wrong!