Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- array = ["value 1", "value 2", "value 3"]
- set x to array index
- upon trigger do
- print array.[x]
- x = x + 1
- if x = array.length
- x = 0
- end
- end
- This will:
- Print values from the array, one at a time, when triggered to do so.
- Eg:
- printvalue
- => value 1
- printvalue
- => value 2
- printvalue
- => value 3
- print value
- => value 1
- etc.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement