An overview of the Iterator toolset

The Iterator toolset has twelve iterators that help repeat a process or set of processes on a set of inputs.

NoteNote:

The tools are intended for use only in ModelBuilder and not in Python scripting.

Iterator

Description

For

Iterates over a starting and ending value by a given value. It works exactly like For in any scripting/programming language, executing through a set number of items.

While

Works exactly like 'while' in any scripting/programming language, executing "while" a condition is true or false for the input or set of inputs.

Iterate Feature Selection

Iterates over features in a feature class.

Iterate Row Selection

Iterates over rows in a table.

Iterate Field Values

Iterates over each value in a field.

Iterate Multivalue

Iterates over a list of values.

Iterate Datasets

Iterates over datasets in a Workspace or Feature Dataset.

Iterate Feature Classes

Iterates over feature classes in a Workspace or Feature Dataset.

Iterate Files

Iterates over files in a folder.

Iterate Rasters

Iterates over rasters in a Workspace or a Raster Catalog.

Iterate Tables

Iterates over tables in a workspace.

Iterate Workspaces

Iterates over workspaces in a folder.

Related Topics


4/27/2011