Show TOC

Function documentationFor Next Loop Locate this document in the navigation structure

 

This action is used to perform a task for a predefined amount of times. All actions that directly follow the For Next Loop action are executed for each iteration until the To limit is reached.

To stop before the To property limit is reached, you must set the Break property to true (or 1). The From, To, and Step (increment) properties are all user-defined.

Features

The properties for this action are listed in the following table:

Property

Data Type

Access

Use

Break

Boolean

In and out

Stops the execution of the action. When Break is True, the loop exits.

From

Integer

In and out

The initial value of the loop counter.

To

Integer

In and out

When this value is reached on the counter, the execution of the loop stops.

Step

Integer

In and out

The increment value of the counter for each iteration through the loop. For example, a Step value of 1 increases the value of the loop counter by one after each iteration through the loop.

CurrentItem

Integer

In and out

Returns the value of the loop counter for each iteration.

Success

Boolean

In and out

Determines whether the action is successful. If it fails, error information is displayed in the server trace log.