Advertisement
otorp2

lua nested if

Jun 22nd, 2017
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. myVariable1 = 1
  2. myVariable2 = 5
  3. myVariable3 = 8
  4.  
  5. if myVariable1 == 1 then
  6. if myVariable2 == 5 then
  7. if myVariable3 == 8 then
  8. print("var 3")
  9. end
  10. print("var 2")
  11. end
  12. print("var 1")
  13. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement