Script Function Reference

Function Reference >Script Function Reference >Function Manipulation>getFunction

getFunction

getFunction will retrieve information for a function defined in the calculator.

getFunction(name)

Parameters

name is a string with the name for the function to retrieve

Return Value

getFunction returns information for the function specified by name in a function table format. If the function is not defined a nil is returned.

Example

function example()
	fn = getFunction("dist")
	r = evalFunction(fn, 3, 4)
	outputString("r("..fn.params..")="..r.."\n")
end