For (ModelBuilder)

Summary

Iterates over a starting and ending value by a given value.

Learn how For works in ModelBuilder

Usage

  • This tool is intended for use in ModelBuilder, not in Python scripting.

  • The tool increments the starting value until the maximum specified limit is reached. For example, if the From Value parameter is 0 and To Value is 10 to be incremented By Value 3, the iteration will increment until value 9.

Syntax

arcpy.mb.IterateCount(from, to, increment)
ParameterExplanationData Type
from

The value used to start the iteration.

Long
to

The value used to run the iteration.

Long
increment

The value used to increment.

Long

Derived Output

NameExplanationData Type
value

The value returned by each iteration.

Variant

Environments

This tool does not use any geoprocessing environments.

Licensing information

  • Basic: Yes
  • Standard: Yes
  • Advanced: Yes