STOP

Syntax

STOP

Explanation

STOP makes Logo halt execution of the current procedure and return to the calling procedure. If there is no calling procedure, Logo returns to TOPLEVEL.

Example

TO GUESS


 * TYPE [HOW MANY SYMPHONIES DID BEETHOVEN COMPOSE]


 * MAKE "GUESS READ


 * MAKE "NUMBER 9


 * IF :NUMBER = :GUESS [PR [THAT'S RIGHT\!] [PR [NOT QUITE. GUESS AGAIN.]] GUESS

END

? GUESS

HOW MANY SYMPHONIES DID BEETHOVEN COMPOSE? ? 3

NOT QUITE. GUESS AGAIN.

HOW MANY SYMPHONIES DID BEETHOVEN COMPOSE? ? 9

THAT'S RIGHT!

?