Post Reply 
Controlling program exit
11-13-2020, 10:44 PM (This post was last modified: 11-13-2020 10:44 PM by Han.)
Post: #4
RE: Controlling program exit
I recommend using a "flag" variable to exit. For example,
Code:

local exit_flag:=0;

REPEAT
   // your code here; set exit_flag to 1 if desired key is pressed
UNTIL exit_flag; // (set exit_flag to non-zero to exit)
I have not tested your code, but it looks like you have at least one potential issue related to the test condition input==19. If input is a list, then what does input==19 return?

Graph 3D | QPI | SolveSys
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Controlling program exit - cahlucas - 11-13-2020, 05:03 PM
RE: Controlling program exit - cahlucas - 11-13-2020, 10:16 PM
RE: Controlling program exit - Han - 11-13-2020 10:44 PM
RE: Controlling program exit - cahlucas - 11-13-2020, 11:08 PM
RE: Controlling program exit - Jacob Wall - 11-14-2020, 04:31 PM
RE: Controlling program exit - cahlucas - 11-15-2020, 07:55 PM
RE: Controlling program exit - Jacob Wall - 11-15-2020, 10:58 PM
RE: Controlling program exit - cahlucas - 11-17-2020, 05:31 PM
RE: Controlling program exit - Jacob Wall - 11-17-2020, 09:08 PM
RE: Controlling program exit - cahlucas - 11-18-2020, 05:55 PM
RE: Controlling program exit - Han - 11-17-2020, 10:15 PM
RE: Controlling program exit - Han - 11-18-2020, 09:41 PM
RE: Controlling program exit - cahlucas - 11-20-2020, 01:59 AM
RE: Controlling program exit - Han - 11-21-2020, 04:53 PM
RE: Controlling program exit - cahlucas - 11-21-2020, 11:54 PM
RE: Controlling program exit - Han - 11-30-2020, 01:57 AM
RE: Controlling program exit - cahlucas - 11-30-2020, 10:01 PM



User(s) browsing this thread: 1 Guest(s)