Script Function ReferenceFunction Reference >Script Function Reference >Varaible Manipulation>getValuegetValuegetValue will retrieve a calculator variable.
getValue(varName, ...)
ParametersgetValue will accept any number of string values. Each string needs to be the name of a varaible defined in the calculator.Return ValueFor 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.Examplefunction example() x,list = getValue("x","list") outputString("x="..x.r.."\n") outputString("listlength="..list.len.."\n") end |