Advertisement
Guest User

Untitled

a guest
Jan 20th, 2017
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. # a for loop where keyword "iter" inside scope will return current iteration
  2. loop 1..20:
  3. if iter == 1 # first loop
  4.  
  5. # same as above however iter will now be stored in variable "i"
  6. loop 1..20 as i:
  7. i == iter
  8.  
  9. #works as while loop
  10. loop True:
  11. dostuff()
  12.  
  13. # foreach loop
  14. loop array:
  15. dostuff(iter)
  16.  
  17. # standard
  18. if a == b:
  19. # a is b
  20. else:
  21. # a is not b
  22.  
  23. #switch
  24. if a:
  25. is 5:
  26. # a is 5
  27. is b:
  28. # a is b
  29. return #escapes the if scope
  30. is not b:
  31. #a is not b
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement