The Stop tool in ModelBuilder stops iteration even when mulitple inputs do not meet the specified condition.
Last Published: August 25, 2014ArcGIS for Desktop
Bug ID Number
NIM067700
Submitted
April 29, 2011
Last Modified
June 5, 2024
Applies to
ArcGIS for Desktop
Version found
10.1
Version Fixed
10.1
Status
Fixed
The bug has been fixed. See the Version Fixed and Additional Information, if applicable, for more information.
Workaround
1. Add a MultiValue String Variable to the model.2. Set the inputs to the MultiValue variable equal to inline variables from the Boolean variables that are to be evaluated.3. Use the Calculate Value Model tool to evaluate the MultiValue variable for whether all values are true, all values are false or a mixture of both. Below is an example of an expression that can be used for this: def getBool(multiValue): boolList = multiValue.split(";") boolSet = set(boolList) if len(boolSet) == 1: return boolList[0] == "true" else: return False