Skip to content

Latest commit

 

History

History
17 lines (11 loc) · 379 Bytes

init_function_syntax.md

File metadata and controls

17 lines (11 loc) · 379 Bytes

Init Function Syntax

If defined, init function is called right after the script is loaded from SD card and begins execution. Init is called only once before the run function is called for the first time.

local function <init_function_name>()
  -- code here runs only once when the model is loaded
end
  • #####Input Parameters: none

  • #####Return values: none