Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ----- These variables dont matter
- local firstVariable = 1
- local secondVariable = 2
- local thridVariable = 3
- local Type = "Whatever"
- local ExampleTable = {"1","2","3","4","5"}
- for key, dialogSet in pairs(ExampleTable) do
- if dialogSet.Type == "Continue" then
- key = firstVariable -- Set the key to the next iteration I want the loop to go through
- continue -- Stop the for loop here and make the loop start the next iteration
- elseif dialogSet.Type == "EndDialoge" then
- break
- else
- end -- Stop for loop completely
- end
Advertisement
Add Comment
Please, Sign In to add comment