Skip To Content

While

Summary

Works in the same way as 'while' in any scripting or programming language, executing while a condition is true or false for the input or set of inputs.

Learn how While works in ModelBuilder

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,...]

The input values to check to determine whether to iterate.

Multiple Value
condition
(Optional)

Specifies the iteration condition. 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

Derived Output

NameExplanationData Type
continue

A Boolean indicating whether or not to continue.

Boolean

Environments

This tool does not use any geoprocessing environments.

Licensing information

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