getKey->K stores the return value of the function getKey (a number) into K (a variable). So, bflat's code with annotations (PS, bflat, you have an extra End on line 3):
Code:
When you get to the End, jump back to this While line as long as K is not equal to 45. Only once K becomes 45 (because CLEAR was pressed) can this While loop exit.
Code:
If the key was Y=, then do "Do stuff here"
Code:
Now it's time to loop back to the While, as long as K is not 45.
Code:
Code:
:While K!=45 (45 is the key code for Clear)
Code:
:GetKey -> K
:If K=11
Code:
:Then
:Do stuff here
:End
:If K=12 (12 is the key code for Windows)
:Then
:Do stuff here
:End
Code:
:End