Script Function Reference
Function Reference
>Script Function Reference
>Varaible Manipulation>getList
getList
getList will retrieve a list variable.
getList(varName, ...)
Parameters
getList 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 getList will return a list in the list table format.
If the variable is not defined in the calculator or is a
number or matrix a nil is returned.
Example
function example()
list = getList("list")
sum = 0
for i = 1,list.len do
sum = sum + list[i].r
end
outputString("sum(list)="..sum.."\n")
end
|