im talking to myself but you can try this
DEF myCounter()
;FOLD --> Variables
INT iDontSupplyCodeForHelp, _targetValue
;ENDFOLD (Variables)
;FOLD --> Initial Values
iDontSupplyCodeForHelp = 0
_targetValue = 5
;ENDFOLD (Initial Values)
Loop
iDontSupplyCodeForHelp = iDontSupplyCodeForHelp + 1
; Do your Code here
if (iDontSupplyCodeForHelp >= _targetValue) Then
Exit
ENDIF
Endloop
or you can do
repeat
iDontSupplyCodeForHelp = iDontSupplyCodeForHelp + 1
;do your code here
until (iDontSupplyCodeForHelp => _targetValue)
not trying to sound gauche, but it really does help us to help you when you supply example codes here. Skyefyre is the only one that can see inside of your brain