Guest User

Psuedo Code

a guest
Jun 24th, 2024
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.54 KB | None | 0 0
  1. ----- These variables dont matter
  2. local firstVariable = 1
  3. local secondVariable = 2
  4. local thridVariable = 3
  5.  
  6. local Type = "Whatever"
  7.  
  8. local ExampleTable = {"1","2","3","4","5"}
  9.  
  10. for key, dialogSet in pairs(ExampleTable) do
  11.     if dialogSet.Type == "Continue" then
  12.        
  13.         key = firstVariable -- Set the key to the next iteration I want the loop to go through
  14.        
  15.         continue -- Stop the for loop here and make the loop start the next iteration
  16.  
  17.     elseif dialogSet.Type == "EndDialoge" then
  18.         break
  19.     else
  20.        
  21.     end -- Stop for loop completely
  22. end
Advertisement
Add Comment
Please, Sign In to add comment