Skip to content

Latest commit

 

History

History
21 lines (16 loc) · 462 Bytes

repeat-loop.md

File metadata and controls

21 lines (16 loc) · 462 Bytes
group
Loops

The Repeat Loop

The article explains how to use the most basic loop, the repeat loop, which repeats some statements a specified number of times.

Overview

You write @repeat {number} and put statements inside to use it. number must be a whole number between 1 and 99.

Example

$money = 0

start
  @repeat 5
    $money += 500
    @nowait $money

The above example will increment money by 500 5 times.