laptop and a wrench

Bug

In the ArcGIS Pro 2.0 Python window/command line, an error is produced when using the !=/(not equal to) logic; for example 2!=5 should return a "true", but it returns a syntax error. Also applies to variables, etc., not just integers. It is fine in ArcGIS Pro 1.4.1.

Last Published: February 7, 2018 ArcGIS Pro
Bug ID Number BUG-000106421
SubmittedJuly 7, 2017
Last ModifiedAugust 18, 2025
Applies toArcGIS Pro
Version found2.0
Operating SystemWindows OS
Version FixedPro 2.1
StatusFixed

Workaround

Flip logic, use <> for "not equal to",(deprecated, so does not work in current Python alone but works in ArcGIS Pro), or run Python outside of ArcGIS Pro.

Steps to Reproduce

Bug ID: BUG-000106421

Software:

  • ArcGIS Pro

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