Tests whether code is running as part of a procedure or not.
INTERACTIVE() | Returns $TRUE if it is run within a procedure |
example:
# Only print date if this is code is running # outside of a procedure (in a .gcl file for example) IF Interactive() printn "Running as batch file at " Now() ENDIF
Note: Useful for code fragments which may be used in different ways
The Interactive() command checks to see which of two possible modes a piece of Open GENIE code is executing in.
RESULT = (Boolean)
Returns $TRUE if the command was run outside a procedure.