Notes on Lua Scripting

Top  Previous  Next

 

IOX contains an embedded Lua scripting engine.  The Lua interpreter is used by the ConditionalBranch plugin to evaluate expressions.  It is also used by the scripting plugin to allow you to perform operations which would be difficult or impossible to accomplish with standard plugins.

 

When IOX starts, it looks for a Lua script called iox.lua in the IOX root directory.  If the script is found, it is loaded and executed by the internal Lua interpreter.  This allows you to set up globals and Lua functions which can then be referenced by the ConditionalBranch plugin or by other Lua scripts.