diff --git a/examples/loops/loop_repeat.cir b/examples/loops/loop_repeat.cir index eb10974fe..526b24287 100644 --- a/examples/loops/loop_repeat.cir +++ b/examples/loops/loop_repeat.cir @@ -1,10 +1,21 @@ example repeat loop .control - +* plain number +repeat 3 + echo How many loops? Count yourself! +end +echo +* variable set loops = 7 repeat $loops echo How many loops? $loops end +echo +* vector +let loopvec = 4 +repeat $&loopvec + echo How many loops? $&loopvec +end .endc