en:docs:dos:cmd:basic:for_next

Table of Contents

FOR/NEXT

Syntax

FOR variable = start TO finish [STEP increment]
NEXT [variable]

Description

FOR - NEXT structure. The loop will continue a fixed number of times, which is determined by the values of start, finish, and increment.