PHREEQC-BASIC

get_var(<str::variable>)

MY-BASIC

get_var(<str::variable>)

PYTHON

get_var(<str::variable>)



Returns the numerical or alphanumerical value of a global variable.



Return value: float or string



Arguments


variable

str: Case sensitive name of the variable



Error Messages


0101

String Expected

variable needs to be a string.

3001

Global variable is not defined

Check errors in variable and be aware that global variable names are case sensitive. The name of an alphanumeric global variable should end with a $ sign. A list of possible valid names is given in the error message.

Global variables are only available after they have been defined in the input file. Check if you define the global variable before the script with get_var() is executed.