< Previous | Contents | Next >
Variables
In C language variables are declared by int, uint, float, double etc, in Lua language this happens based on first use of the variable. To declare variables use the term local.
In this example local bright = InBright:GetValue(req).Value The declared variable is a number.
This is number local r = 0 and could be Integer or floating point,Setting the variable to local
g = 0.0 will set it to float.
This is a pointer to an image local img = InImage:GetValue(req)
The following is a table of strings
local apply_operators = { "Over", "In", "Held Out", "Atop", "XOr", }