ArcGIS for Desktop

  • Documentation
  • Pricing
  • Support

  • My Profile
  • Help
  • Sign Out
ArcGIS for Desktop

ArcGIS Online

The mapping platform for your organization

ArcGIS for Desktop

A complete professional GIS

ArcGIS for Server

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
  • Pricing
  • Support
Esri
  • Sign In
user
  • My Profile
  • Sign Out

Help

  • Home
  • Get Started
  • Map
  • Analyze
  • Manage Data
  • Tools
  • More...

How the Boolean math tools work

Available with Spatial Analyst license.

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

    Note:

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

    Related Topics

    • An overview of the Logical Math tools
    • Boolean And
    • Boolean Not
    • Boolean Or
    • Boolean XOr
    Feedback on this topic?

    ArcGIS for Desktop

    • Home
    • Documentation
    • Pricing
    • Support

    ArcGIS Platform

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

    About Esri

    • About Us
    • Careers
    • Insiders Blog
    • User Conference
    • Developer Summit
    Esri
    © Copyright 2016 Environmental Systems Research Institute, Inc. | Privacy | Legal