Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- name = "My script"
- description = """
- This is a
- long
- description.
- """
- script = {
- println "Started script"
- Thread.start {
- loop {
- if (it == 5) return false
- println "Thread $it"
- 100
- }
- }
- loop { loops ->
- println "First loop - $loops"
- loop {
- println " Inner loop - $it"
- false
- }
- loops == 5 ? false : 100
- }
- loop {
- println "Second loop $it"
- it == 2 ? false : 100
- }
- println helper()
- println "Finished script."
- }
- helper = {
- "helped!"
- }
Add Comment
Please, Sign In to add comment