Ship Stability Software
Command of the Week
(New or interesting aspects of GHS that you may not know about)
Here is a handy little trick that simplifies error exits.
In the example below, we would like the error exit from DOING_BETTER to also exit DOING_GOOD because in that case we want to bypass the message COMPLETED DOING GOOD. Instead of managing this with a variable, a slick way to do it is with a double exit.
me doing good
me completed doing good
me starting to do even better
me oops - have to get out of here! | EXIT | EXIT
me completed doing better
Here is the result:
STARTING TO DO EVEN BETTER
OOPS - HAVE TO GET OUT OF HERE!
End of Run File DOGOOD.RF.
|You can combine as many EXIT commands as needed to exit multiple levels. If you put more EXITs than there are macros to exit, the extras are simply ignored.|
Questions, comments, or requests?
Contact Creative Systems, Inc.
Office hours: 7:00 am - 4:00 pm Pacific Time, Monday - Friday Mailing address:
PO Box 1910
Port Townsend, WA 98368 USA Click here for an index to this and previous COWs