Inquire()

Prompts the user for terminal input and reads back an input variable.

INQUIRE [aprompt=String] Inquire information from the user interactively

example:

	# Read in a lower limit from the user
	>> llimit = inquire("Enter lower limit")
	Enter lower limit: 45.678
	>> printn llimit
	45.6779999999999
	>> printn Is_a(llimit, "Real")
	$TRUE

Note: To read a string without any conversions or prompting use Read_terminal()

Inquire

This command reads input from the users terminal. It also supplies a prompt string to obtain input from the user. The Inquire() command attempts to read the input variable back into the correct type of Open GENIE internal variable. Currently, this is only the case for single Integer or Real values. Any unrecognized type is returned as a string.

Parameters:

Aprompt (String) [ default = " :" ]

A string which tells the user what information is required, a ":" is appended to the prompt.

RESULT = (Any)

Either a string or the value of the variable as a Real or Integer. If no input is given "" is returned.