The Stop Command

stop.png

Command Summary

Stops the program at the given point of the program

Command Syntax

No special syntax

Menu Location

In the program editor, [F2][8][4]

Calculator Compatibility

This command works on all calculators.

Token Size

X byte(s)

Simply put, the Stop command stops the program wherever it is placed.

stop()
Prgm
0->X
While true
getkey()->k
x+1->x
Output 5,5,x
If k=13
Stop
EndWhile
EndPrgm

This program will increase the value of x by one, but when the user presses the ENTER button, it will stop. Keep in mind to put the Stop EXACTLY where you want it to stop.

Related Commands

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-Noncommercial 2.5 License.