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 Boolean math tools work

Available with Spatial Analyst license.

  • Boolean logic conditions
  • NoData handling

The Boolean math tools interpret the input cell values as Boolean values, where non-zero values are considered true and the value 0 is considered false. The input rasters are tested on a cell-by-cell basis.

There are four tools for performing boolean logical operations: Boolean And, Boolean Or, Boolean XOr and Boolean Not.

Boolean logic conditions

Boolean And

If both values are true, the output is 1. If one or both values are false, the output is 0.

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

Boolean Or

If one or both values are true, the output is 1. If both values are false, the output is 0.

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

Boolean XOr

If one value is true and one value is false, the output is 1. If both values are true or both are false, the output is 0.

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

Boolean Not

Unlike the other boolean tools, there is only one input for Boolean Not.

If the value is true, the output is 0 (the complement of true). If the value is false, the output is 1.

Input1 ≠ 0, Output = 0
Input1 ≠ 0, 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
  • Boolean And
  • Boolean Not
  • Boolean Or
  • Boolean XOr

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