<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>idea XOR Logical Operator - Select by Attributes in ArcGIS Pro Ideas</title>
    <link>https://community.esri.com/t5/arcgis-pro-ideas/xor-logical-operator-select-by-attributes/idi-p/974683</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Is it possible to add the logical operator XOR to the Select By Attributes operators? &amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;For example, I may want to select street centerlines with a particular attribute on the left or right side, but I do not want the records where that attribute is on both sides.&amp;nbsp; It is possible to construct a selection query that functions as an XOR selection, and the following string shows how we select the Left XOR Right VTD (voting tabulation district) of a centerline.&lt;BR /&gt;&lt;BR /&gt;(L_VTD = '127' AND R_VTD &amp;lt;&amp;gt; '127') OR ( L_VTD &amp;lt;&amp;gt;&amp;nbsp; '127' AND R_VTD = '127')&lt;BR /&gt;&lt;BR /&gt;It would be so much less cumbersome to have a native operator for an XOR selection.&lt;BR /&gt;Thank you.&lt;BR /&gt;&lt;BR /&gt;

&lt;!-- content transformation source ID: 08730000000btbU --&gt;

&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Jan 2012 16:52:38 GMT</pubDate>
    <dc:creator>SteveFloyd</dc:creator>
    <dc:date>2012-01-17T16:52:38Z</dc:date>
    <item>
      <title>XOR Logical Operator - Select by Attributes</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/xor-logical-operator-select-by-attributes/idi-p/974683</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Is it possible to add the logical operator XOR to the Select By Attributes operators? &amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;For example, I may want to select street centerlines with a particular attribute on the left or right side, but I do not want the records where that attribute is on both sides.&amp;nbsp; It is possible to construct a selection query that functions as an XOR selection, and the following string shows how we select the Left XOR Right VTD (voting tabulation district) of a centerline.&lt;BR /&gt;&lt;BR /&gt;(L_VTD = '127' AND R_VTD &amp;lt;&amp;gt; '127') OR ( L_VTD &amp;lt;&amp;gt;&amp;nbsp; '127' AND R_VTD = '127')&lt;BR /&gt;&lt;BR /&gt;It would be so much less cumbersome to have a native operator for an XOR selection.&lt;BR /&gt;Thank you.&lt;BR /&gt;&lt;BR /&gt;

&lt;!-- content transformation source ID: 08730000000btbU --&gt;

&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jan 2012 16:52:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/xor-logical-operator-select-by-attributes/idi-p/974683</guid>
      <dc:creator>SteveFloyd</dc:creator>
      <dc:date>2012-01-17T16:52:38Z</dc:date>
    </item>
    <item>
      <title>Re: XOR Logical Operator - Select by Attributes</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/xor-logical-operator-select-by-attributes/idc-p/974684#M10215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Let me generalize your expression&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="comment token"&gt;# A XOR B&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;A &lt;SPAN class="operator token"&gt;AND&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;NOT&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;B&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;OR&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;NOT&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;A&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;AND&lt;/SPAN&gt; B&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;‍‍‍
&lt;SPAN class="comment token"&gt;# this should work too with one less NOT&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;A &lt;SPAN class="operator token"&gt;OR&lt;/SPAN&gt; B&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;AND&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;NOT&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;A &lt;SPAN class="operator token"&gt;AND&lt;/SPAN&gt; B&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 11:54:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/xor-logical-operator-select-by-attributes/idc-p/974684#M10215</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2021-12-12T11:54:51Z</dc:date>
    </item>
  </channel>
</rss>

