Page tree
Skip to end of metadata
Go to start of metadata

getContext()

Description

Function to obtain the name of the context.

Available in: Controller, Processor.

Return Values

Returns a string with the name of the context in which the function is called.

Example

-- print the context
print("Global statement: "..getContext())

function onLoadIntoSlot()
    print("onLoadIntoSlot: "..getContext())
end

function onInit()
    print("onInit: "..getContext())
end

Output Messages

Global statement: Controller
onLoadIntoSlot: Controller
onInit: Processor

See Also: onLoadIntoSlot, onInit

1 Comment