Tags and keywords
This shows a LoopNode with loopVariable running in Magic Model Analyst® (Cameo Simulation Toolkit®) (see also the mini video below):
video_sim
While setting it up is rather fiddly, it's not too bad once you have the hang of it. Nevertheless, consider using UML-friendly Action Language for Foundational UML (Alf) instead.