Guest User

Untitled

a guest
Jun 17th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. name = "My script"
  2.  
  3. description = """
  4. This is a
  5. long
  6. description.
  7. """
  8.  
  9. script = {
  10. println "Started script"
  11. Thread.start {
  12. loop {
  13. if (it == 5) return false
  14. println "Thread $it"
  15. 100
  16. }
  17. }
  18.  
  19. loop { loops ->
  20. println "First loop - $loops"
  21. loop {
  22. println " Inner loop - $it"
  23. false
  24. }
  25. loops == 5 ? false : 100
  26. }
  27.  
  28. loop {
  29. println "Second loop $it"
  30. it == 2 ? false : 100
  31. }
  32.  
  33. println helper()
  34. println "Finished script."
  35. }
  36.  
  37. helper = {
  38. "helped!"
  39. }
Add Comment
Please, Sign In to add comment