I assume you mean something like this:
<<set _text to ["hello", "welcome", "hey", "greetings"], _i to 0>>\
@@#cycling-text;_text[_i]@@
<<nobr>>
<<repeat 1s>>
<<set _i++>>
<<replace "#cycling-text">>\
<<= _text[_i % _text.length]>>\
<</replace>>
<</repeat>>
<</nobr>>
Warning: I didn't test this code, so it's possible I made a mistake.