/exit

Usage:

/EXIT [n]


When called directly or indirectly during a /load, /exit aborts execution of all enclosing macro bodies, and aborts n (default 1) enclosing /load's.

When called outside of a /load, /exit has no effect.

Example: one way to prevent a file from being loaded more than once is to put commands like these at the beginning of the file:

  /if (variable) /exit%; /endif
  /set variable=1
...where variable is the name of the file or some other unique name.

See: /load, /return, /break, /loaded


Back to index
Back to tf home page
Copyright © 1997, 1998, 1999, 2002, 2003, 2004, 2005, 2006-2007 Ken Keys