Skip To Content

While

Summary

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

Usage

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

Syntax

While_mb (in_values, {condition})
ParameterExplanationData Type
in_values
[in_value,...]

Input values to check whether to iterate or not.

Multiple Value
condition
(Optional)

Choose True or False to set the condition.

  • TRUE Iteration will run until all the input values are True. This is the default.
  • FALSE Iteration will run until all the input values are False.
String

Environments

This tool does not use any geoprocessing environments.

Licensing information

  • ArcGIS Desktop Basic: Yes
  • ArcGIS Desktop Standard: Yes
  • ArcGIS Desktop Advanced: Yes