A Task object may have a Standard Loop Marker. In XML you can see StandardLoopCharacteristics tag. StandardLoopCharacteristics have testBefore, loopMaximum and loopCondition attributes.
testBefore could be a checkbutton
loopMaximum could be a text input
loopCondition could be just like a script group