Posted 03 July 2016 - 11:14 PM
Basically, I want a line of code to be executed once a for loop has finally ended. My for loop is designed to search a table and satisfy an if statement:
local list={ [1] = "string1", [2] = "string2"}
local string
for key,value in pairs(list) do
if string == value then
–blah,blah,blah
end
end
–part that is supposed to execute code once the for loop is completed
local list={ [1] = "string1", [2] = "string2"}
local string
for key,value in pairs(list) do
if string == value then
–blah,blah,blah
end
end
–part that is supposed to execute code once the for loop is completed