laptop and a wrench

Bug

A Python Labeling Expression that uses numeric values in an IF statement fails to return the correct values.

Last Published: August 25, 2014 ArcGIS for Desktop
Bug ID Number NIM081975
SubmittedJune 21, 2012
Last ModifiedJune 5, 2024
Applies toArcGIS for Desktop
Version found10.1
Operating SystemWindows OS
Operating System Version7
Version FixedN/A
StatusFixed

Additional Information

The Building label expressions help topic has been updated.

Workaround

The numeric fields are automatically cast to text strings. Therefore if you wish to use a numeric value in an arithmetic operation, or a comparison, you will need to cast it back to a numeric data type.example:int([FIELDNAME])

Steps to Reproduce

Bug ID: NIM081975

Software:

  • ArcGIS for Desktop

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options