Script Function Reference

Function Reference >Script Function Reference >Varaible Manipulation>getValue

getValue

getValue will retrieve a calculator variable.

getValue(varName, ...)

Parameters

getValue will accept any number of string values. Each string needs to be the name of a varaible defined in the calculator.

Return Value

For each parameter passed getValue will return the value of the variable in a table format. The value can be of type number, list, or matrix. If the variable is not defined in the calculator a nil is returned.

Example

function example()
	x,list = getValue("x","list")
	outputString("x="..x.r.."\n")
	outputString("listlength="..list.len.."\n")
end