I think relays can be used for loops, I could be wrong as I'm not sure how it's done.
Yep.
1:onactivate/relay
2:onactivate/enableevent/5/check
3:onrelay/decramentprintcount/1
4:onrelay/playsound/some terrorizing beep
5:1000delay/onrelay/relay
6:onprintcountunderflow/enableevent/5/unchecked
7:unprintcountunderflow/spawn explosion/tankshell/2
All targets being self, and the print brick being at 9.
For example would make a simple ticking time bomb that goes off 10 seconds after activating.