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.

NULL<br />

Syntax<br />

NULL<br />

Description<br />

The <strong>UniBasic</strong> NULL command acts as a dummy statement. You can use the NULL<br />

statement anywhere a statement is required.<br />

Tip: Use NULL when a statement or command clause is mandatory, but you do not<br />

want to initiate any action.<br />

Example<br />

In the following example, if the length of the variable NAME$ is zero, the program<br />

prints nothing:<br />

PRINT "NAME: ": ; INPUT NAME$<br />

BEGIN CASE<br />

CASE LEN(NAME$) = 0<br />

NULL<br />

CASE LEN(NAME$) > 0<br />

PRINT "HI, ":NAME$<br />

END CASE<br />

NULL 1-483

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

Saved successfully!

Ooh no, something went wrong!