Calculate Value (Data Management)

Summary

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

Usage

Syntax

CalculateValue_management (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

ArcView: Yes
ArcEditor: Yes
ArcInfo: Yes

10/27/2014