Fortinet black logo

Handbook

Control structures

Control structures

Lua control structures lists the Lua control structures.

Lua control structures

Type Structure
if then else

if condition1 then

elseif condition2 then

… break

else

… go to location1

end

::location1::

for

--fetch all values of table 't'

for k, v in pairs(t) do

end

Control structures

Lua control structures lists the Lua control structures.

Lua control structures

Type Structure
if then else

if condition1 then

elseif condition2 then

… break

else

… go to location1

end

::location1::

for

--fetch all values of table 't'

for k, v in pairs(t) do

end