Appendix C: Scripts
:
Control structures
Control structures
Table 130
lists Lua control structures.
Table 130:
Lua control structures
Type
Structure
if then else
if
condition1
then
…
elseif
condition2
then
…
else
…
end
for
--fetch all values of table 't'
for k, v in pairs(t) do
…
end