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.
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 sub-model/model within a model/nested model that contains only the iterator and add it as a model tool into the main model.
Syntax
arcpy.mb.While(in_values, {condition})
Parameter | Explanation | Data 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.
| String |
Derived Output
Name | Explanation | Data Type |
continue | Boolean |
Environments
This tool does not use any geoprocessing environments.
Licensing information
- Basic: Yes
- Standard: Yes
- Advanced: Yes