Servertec for step-next
Content
Introduction
Release Notes
Features
FAQs
Requirements
Installation
Change Log
Future Plans
Knowledge Base
Reference 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
Servlet
Server Pages
Preprocessor
Executable
Samples
Legal
Contact Us

 

Repeats a block of statements a specified number of times.

Syntax

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

Notes

    variable the loop counter.
    expression1 the initial value of the loop counter.
    expression2 the final value of the loop counter.
    expression3 the increment to loop counter each time through the loop.
    statement any statements to process.

    Repeats the block of statements 0 or more times.

Example

    for i = 10 to 1 step -1
        println( i )
    next
    
 top of page
Copyright © 1998-2005 Servertec. All rights reserved.
Privacy Statement.
Last Modified: Sun Sep 04 14:56:08 EDT 2005