07.05.2015 Views

Bronze Edition Guide - True BASIC

Bronze Edition Guide - True BASIC

Bronze Edition Guide - True BASIC

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

56 BRONZE <strong>Edition</strong> <strong>Guide</strong><br />

As with UNTIL, you can use either DO WHILE or LOOP WHILE. A DO WHILE loop may<br />

never be used if the condition is false the first time; a LOOP UNTIL loop always runs at<br />

least once since the test is made at the end of the loop.<br />

You can also combine conditions with <strong>True</strong> <strong>BASIC</strong>’s logical operators: AND, OR, and<br />

NOT. You can use a combined condition anywhere a simple condition works. For example,<br />

the following statement would continue the loop until either the money doubles or 8<br />

years go by:<br />

LOOP until money >= 2 * original OR years >= 8

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

Saved successfully!

Ooh no, something went wrong!