Advertisement
Guest User

Untitled

a guest
Jul 9th, 2015
299
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. array = ["value 1", "value 2", "value 3"]
  2.  
  3. set x to array index
  4.  
  5. upon trigger do
  6.  
  7. print array.[x]
  8. x = x + 1
  9. if x = array.length
  10. x = 0
  11. end
  12.  
  13. end
  14.  
  15.  
  16. This will:
  17.  
  18. Print values from the array, one at a time, when triggered to do so.
  19.  
  20. Eg:
  21.  
  22. printvalue
  23. => value 1
  24. printvalue
  25. => value 2
  26. printvalue
  27. => value 3
  28. print value
  29. => value 1
  30.  
  31. etc.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement