do, loop

Repeats. (version 4.56 or later)

do [ { while | until } <expression> (option)]

  ...

  ...

loop [ { while | until } <expression> (option)]

Remarks

Repeats the statements between 'do' and 'loop' according to condition as follows. If 'while' specified, repeats while <expression> is non-zero. If 'until' specified, repeats while <expression> is zero.

Example

; Repeat ten times.
i = 10
do while i>0
    i = i - 1
loop
; Send clipboard content.
offset = 0
do
    clipb2var buff offset
    if buff > 0 send buff
    offset = offset + 1
loop while result = 2

See also