If Row Count Is (ModelBuilder)

Summary

Evaluates the row count of the input data and checks whether it matches a specified value.

Learn how If Row Count Is works in ModelBuilder

Usage

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

  • The tool has two Boolean outputs, True and False. Based on the condition being evaluated, one of the two Boolean outputs is true and the other is false after the tool runs. These Boolean outputs must be set as a precondition to the downstream tools for those to execute if either of the preconditions is true.

Parameters

LabelExplanationData Type
Layer Name or Table View

The input layer or table view to evaluate.

Table View; Raster Layer; Mosaic Layer
Count Condition
(Optional)

Specifies the condition to be used to test the field values of the records matching the SQL expression.

  • Is Equal toChecks if the row count is equal to the Count value.
  • Is BetweenChecks if the row count is between the Minimum Count value and Maximum Count value.
  • Is Less ThanChecks if the row count is less than the Count value.
  • Is Greater ThanChecks if the row count is greater than the Count value.
  • Is Not Equal toChecks if the row count is not equal to the Count value.
String
Count
(Optional)

The integer count value.

Long
Minimum Count
(Optional)

The minimum integer count value.

Long
Maximum Count
(Optional)

The maximum integer count value.

Long

Derived Output

LabelExplanationData Type
True

If the specified criteria evaluates to True, this parameter will be set to True.

Boolean
False

If the specified criteria evaluates to False, this parameter will be set to True.

Boolean

Environments

This tool does not use any geoprocessing environments.

Licensing information

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