Example
Code Block |
---|
-- script for testing the initialization when loading a program into the slotSlot rackRack function onInit() print("onInit") -- This is printed last, after onLoadIntoSlot. end function onLoadIntoSlot() print("onLoadIntoSlot") -- This is printed after onLoad. end function onLoad() print("onLoad") -- This is printed after the global statement. end print("Global statement") -- This is printed first. |