If Value Is (Model Tools)
Summary
Evaluates an input value compared to a single value, a list of values, or a range of values using a defined comparison operator.
Usage
This tool is only available from ModelBuilder 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 run if either of the preconditions is true.
Note:
Most tools are empty (without color) when added to a model; however, the If Value Is, If Data Exists, Collect Values, and Merge Branch tools are not. The If Value Is tool is always in a ready-to-run state (with color). This is because the input to the tool can be empty, which is considered a valid input for the comparison.
Parameters
| Label | Explanation | Data type |
|---|---|---|
|
Input Value (Optional) |
The input value to evaluate. |
Any Value |
|
Value Test (Optional) |
Specifies the type of comparison operator to use.
|
String |
|
Comparison Type (Optional) |
Specifies the type of data comparison to use.
|
String |
|
Values (Optional) |
The list of values to compare to the input value. |
Any Value |
|
Range Values (Optional) |
Specifies the range values to compare to the input value. Value table columns:
|
Value Table |
|
Comparison Value (Optional) |
The single value to compare to the input value. |
Any Value |
Derived output
| Label | Explanation | Data 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