Script Function Reference

Function Reference >Script Function Reference >Varaible Manipulation>setValue

setValue

setValue will store a value into a calculator variable.

setValue(varName, value)

Parameters

varName 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 Value

setValue 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