If Field Exists (ModelBuilder)

Summary

Evaluates if the input data has the specified fields.

Learn how If Field Exists works in ModelBuilder

Usage

  • This tool is only available from the ModelBuilder ribbon for use in models. The tool is not available from the Geoprocessing pane or from Python.

  • 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
Input Table

Input table that will be evaluated for the existence of the specified fields.

Table View; Raster Layer; Mosaic Layer
Field Test
(Optional)

The criteria to test the specified list of fields against.

  • Must have all fieldsAll fields must exists.
  • Must have at least one fieldMust have at least one of the specified fields.
  • Must not have all fieldsMust not have any of the specified fields.
  • Must not have at least one fieldMust not have at least one of the specified fields.
String
Fields

Field names to check for in the input table.

String

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

Related topics