While (ModelBuilder)


Iterates until a condition becomes true or until a condition comes false.

Learn how While works in ModelBuilder


  • This tool is only available from ModelBuilder for use in models. The tool is not available from the Geoprocessing pane or from Python.

  • If an iterator is added to a model, all tools in the model iterate for each value in the iterator. If you do not want to run each tool in the model for each iterated value, create a submodel, model within a model, or nested model that contains only the iterator and add it as a model tool to the main model.


LabelExplanationData Type
Input Values

The input values to evaluate to determine whether to continue to iterate.

Any Value
Continue if inputs are

Specifies whether to iterate until the input values are all true or are all false.

  • TrueThe tool will iterate until all the input values are true. This is the default.
  • False The tool will iterate until all the input values are false.

Derived Output

LabelExplanationData Type

A Boolean indicating whether or not to continue.



This tool does not use any geoprocessing environments.

Licensing information

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

Related topics