ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

  • My Profile
  • Help
  • Sign Out
ArcGIS Desktop

ArcGIS Online

The mapping platform for your organization

ArcGIS Desktop

A complete professional GIS

ArcGIS Enterprise

GIS in your enterprise

ArcGIS for Developers

Tools to build location-aware apps

ArcGIS Solutions

Free template maps and apps for your industry

ArcGIS Marketplace

Get apps and data for your organization

  • Documentation
  • Support
Esri
  • Sign In
user
  • My Profile
  • Sign Out

ArcMap

  • Home
  • Get Started
  • Map
  • Analyze
  • Manage Data
  • Tools
  • Extensions

How the relational math tools work

Available with Spatial Analyst license.

  • Relational tool logic
  • NoData handling

The relational math tools compare the values of inputs and return the results as a Boolean value of 0 for False and 1 for True. The input rasters are tested on a cell-by-cell basis.

There are six tools for performing relational logical operations: Equal To, Not Equal, Greater Than, Greater Than Equal, Less Than, and Less Than Equal.

Relational tool logic

Equal To

If both values are equal, the output is 1. If the values are not equal, the output is 0.

 Input1 = Input2, Output = 1
 Input1 ≠ Input2, Output = 0

Not Equal

If both values are not equal, the output is 1. If the values are equal, the output is 0.

 Input1 = Input2, Output = 0
 Input1 ≠ Input2, Output = 1

Greater Than

If the first input is greater than the second, the output is 1. If not, the output is 0.

 Input1 > Input2, Output = 1
 Input1 = Input2, Output = 0
 Input1 < Input2, Output = 0

Greater Than Equal

If the first input is greater than or equal to the second, the output is 1. If not, the output is 0.

 Input1 > Input2, Output = 1
 Input1 = Input2, Output = 1
 Input1 < Input2, Output = 0

Less Than

If the first input is less than the second, the output is 1. If not, the output is 0.

 Input1 > Input2, Output = 0
 Input1 = Input2, Output = 0
 Input1 < Input2, Output = 1

Less Than Equal

If the first input is less than or equal to the second, the output is 1. If not, the output is 0.

 Input1 > Input2, Output = 0
 Input1 = Input2, Output = 1
 Input1 < Input2, Output = 1

NoData handling

If any of the input cell values is NoData, the output value will be NoData.

Related topics

  • An overview of the Logical Math toolset
  • Equal To
  • Greater Than
  • Greater Than Equal
  • Less Than
  • Less Than Equal
  • Not Equal

ArcGIS Desktop

  • Home
  • Documentation
  • Support

ArcGIS Platform

  • ArcGIS Online
  • ArcGIS Desktop
  • ArcGIS Enterprise
  • ArcGIS for Developers
  • ArcGIS Solutions
  • ArcGIS Marketplace

About Esri

  • About Us
  • Careers
  • Esri Blog
  • User Conference
  • Developer Summit
Esri
Tell us what you think.
Copyright © 2019 Esri. | Privacy | Legal