...
- data – data associated with the step, this can be any data type you want
- delay – how long to wait before starting the next step, in milliseconds:
- -1 = next step requires manual progression (ie. use Sequence() function to trigger next step)
- Sequence.PAUSE = same as -1
- 0 = next step runs immediately with no delay
- Sequence.NEXT = same as 0
- <number> = a positive number defines number of milliseconds to wait before next step is automatically triggered
- Sequence.END = the sequence is finished, and will be reset to the beginning should it be needed again later
- <string> = same as Sequence.END, but also start another sequence (the string defines the name of that sequence)
- <function> = same as Sequence.END, but will also call the function (useful if you want to run some code at the end of the sequence)
...
- No return value or undefined – sequence will continue running as normal
- Sequence.END – abort the sequence
- Sequence.DELETE – same as Sequence.END, but also deletes the sequence data
- Sequence.PAUSE
- Sequence.NEXT
- <string> – same as Sequence.END, but also start another sequence (string defines the name of the sequence to start)
- <function> – same as Sequence.END, but also run the function
...