<?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>topic Re: compare integer fields with code block in GIS Life Discussions</title>
    <link>https://community.esri.com/t5/gis-life-discussions/compare-integer-fields-with-code-block/m-p/1586331#M1493</link>
    <description>&lt;P&gt;you are missing the example and the code block you used&lt;/P&gt;&lt;P&gt;perhaps you could just create a simple integer field and use something like&lt;/P&gt;&lt;LI-CODE lang="python"&gt;def compare(a, b):
    """compare 2 fields and return 0 for different, 1 otherwise"""
    if a and b:
        val = 1 if a == b else 0
        return val
    return None&lt;/LI-CODE&gt;&lt;P&gt;expression compare(!a!, !b!) where `a` and `b` are your field names enclosed in ! marks&lt;/P&gt;</description>
    <pubDate>Tue, 18 Feb 2025 14:11:44 GMT</pubDate>
    <dc:creator>DanPatterson</dc:creator>
    <dc:date>2025-02-18T14:11:44Z</dc:date>
    <item>
      <title>compare integer fields with code block</title>
      <link>https://community.esri.com/t5/gis-life-discussions/compare-integer-fields-with-code-block/m-p/1586255#M1492</link>
      <description>&lt;P&gt;hallo community.&lt;/P&gt;&lt;P&gt;i try to compare 2 field with number and want to know in every row if tha numbers equal or not&lt;/P&gt;&lt;P&gt;can i get here simple code block&amp;nbsp; to get this result?&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;itay&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Feb 2025 09:10:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/gis-life-discussions/compare-integer-fields-with-code-block/m-p/1586255#M1492</guid>
      <dc:creator>itayroei</dc:creator>
      <dc:date>2025-02-18T09:10:39Z</dc:date>
    </item>
    <item>
      <title>Re: compare integer fields with code block</title>
      <link>https://community.esri.com/t5/gis-life-discussions/compare-integer-fields-with-code-block/m-p/1586331#M1493</link>
      <description>&lt;P&gt;you are missing the example and the code block you used&lt;/P&gt;&lt;P&gt;perhaps you could just create a simple integer field and use something like&lt;/P&gt;&lt;LI-CODE lang="python"&gt;def compare(a, b):
    """compare 2 fields and return 0 for different, 1 otherwise"""
    if a and b:
        val = 1 if a == b else 0
        return val
    return None&lt;/LI-CODE&gt;&lt;P&gt;expression compare(!a!, !b!) where `a` and `b` are your field names enclosed in ! marks&lt;/P&gt;</description>
      <pubDate>Tue, 18 Feb 2025 14:11:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/gis-life-discussions/compare-integer-fields-with-code-block/m-p/1586331#M1493</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2025-02-18T14:11:44Z</dc:date>
    </item>
    <item>
      <title>Re: compare integer fields with code block</title>
      <link>https://community.esri.com/t5/gis-life-discussions/compare-integer-fields-with-code-block/m-p/1586345#M1494</link>
      <description>&lt;P&gt;thank you Dan&lt;/P&gt;&lt;P&gt;it's really work &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Feb 2025 14:55:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/gis-life-discussions/compare-integer-fields-with-code-block/m-p/1586345#M1494</guid>
      <dc:creator>itayroei</dc:creator>
      <dc:date>2025-02-18T14:55:09Z</dc:date>
    </item>
    <item>
      <title>Re: compare integer fields with code block</title>
      <link>https://community.esri.com/t5/gis-life-discussions/compare-integer-fields-with-code-block/m-p/1586348#M1495</link>
      <description>&lt;P&gt;good,&amp;nbsp;&lt;/P&gt;&lt;P&gt;perhaps you could go back and click &lt;STRONG&gt;Accept as Solution&lt;/STRONG&gt; on my response&lt;/P&gt;</description>
      <pubDate>Tue, 18 Feb 2025 15:00:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/gis-life-discussions/compare-integer-fields-with-code-block/m-p/1586348#M1495</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2025-02-18T15:00:25Z</dc:date>
    </item>
  </channel>
</rss>

