Calculate Value (ModelBuilder)

License Level:BasicStandardAdvanced

Summary

Calculate Value tool returns a value based on a specified Python expression.

Usage

Syntax

CalculateValue_mb (expression, {code_block}, {data_type})
ParameterExplanationData Type
expression

The Python expression to be evaluated.

SQL Expression
code_block
(Optional)

Additional Python code. Code in the code block can be referenced in the Expression parameter.

String
data_type
(Optional)

The data type of the output returned from the Python expression. This parameter should be used in ModelBuilder to help chain Calculate Value with other tools.

String

Environments

This tool does not use any geoprocessing environments

Related Topics

Licensing Information

ArcGIS for Desktop Basic: Yes
ArcGIS for Desktop Standard: Yes
ArcGIS for Desktop Advanced: Yes
3/3/2014