Servertec for-next
M E N U

Content
Introduction
Release Notes
Requirements
Installation
Change Log
Future Plans
Knowledge Base
Referance Manual
Conventions
Scriptlets
Data Types
Constants
Variables
Procedures
Operators
Statements
=
break
call
//
continue
exit
include
return
If-Then-End
If-Then-Else-End
If-Then
-ElseIf-Then
-End

If-Then
-ElseIf-Then
-Else-End

Do-Loop
Do-Until-Loop
Do-While-Loop
Do-Loop-Until
Do-Loop-While
For-Next
For-Step-Next

Objects
Wrappers
Server Side
Preprocessor
Executable
Make
Samples
Legal
Feedback

 


Repeats a block of statements a specified number of times.

Syntax

    for variable = expression1 to expression2
       { statement }...
    next

Notes

    variable          the loop counter.
    expression1    the initial value of the loop counter.
    expression2    the final value of the loop counter.
    statement       any statements to process.

Repeats the block of statements 0 or more times.
The loop counter is incremented by 1 each time through the loop.

Example

    for i = 1 to 10
        println( i )
    next
top of page
Built with iScript Copyright © 1997-1998 Servertec. All rights reserved.
Last Modified: Wed Apr 15 00:16:38 EDT 1998