Interactive()

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

Interactive

The Interactive() command checks to see which of two possible modes a piece of Open GENIE code is executing in.

  1. As a line inside an Open GENIE procedure
  2. As a line running at the terminal or outside a procedure but within a loading GCL file.

Parameters:

RESULT = (Boolean)

Returns $TRUE if the command was run outside a procedure.