|
|
Script Function ReferenceFunction Reference >Script Function Reference >Varaible Manipulation>setValuesetValuesetValue will store a value into a calculator variable.
setValue(varName, value)
ParametersvarName is the name of the calculator variable to store a value into. If the variable doesn't exist it is created.value is the value to store into the varaible. It can be a number or a table as a number, list, or matrix. Return ValuesetValue doesn't return anything.Example
function example()
setValue("x", 10)
list = {}
list.type = "list"
list.len = 2
list[1] = 4
list[2] = 5
setValue("list", list)
end
|