AMT Help Files

LOOP

Syntax Color Legend
Command
Mandatory parameter
Optional parameter
Mandatory keyword
Optional keyword

Syntax

LOOP
  <Code lines>
ENDLOOP

Description

Perpetually executes the code lines in the loop. Execution can only terminated by breaking out of the loop in one of the three following ways.

Diagram

Returned value type

None

Parameters

None

Example

s-month := 1

loop
  proc5 ()
  s-month += 1
  if s-month > 12
    break
  endif
endloop

Contents