<?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: Calculate Field IF Statement in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/calculate-field-if-statement/m-p/1550233#M89302</link>
    <description>&lt;P&gt;Here's a sample with a few notes in the attached screen shot.&amp;nbsp; Good luck.&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="use of python for function with string comparison" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/117645i71FDC7FC66875230/image-size/large?v=v2&amp;amp;px=999" role="button" title="sample calculation.jpg" alt="use of python for function with string comparison" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;use of python for function with string comparison&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 18 Oct 2024 22:54:19 GMT</pubDate>
    <dc:creator>KevininMN1</dc:creator>
    <dc:date>2024-10-18T22:54:19Z</dc:date>
    <item>
      <title>Calculate Field IF Statement</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/calculate-field-if-statement/m-p/1550182#M89294</link>
      <description>&lt;P&gt;I apologize in advance, I am new to ArcGIS Pro.&amp;nbsp; Is there an IF statement that can be calculated that says if the &lt;STRONG&gt;&lt;EM&gt;Street Name&lt;/EM&gt;&lt;/STRONG&gt; field begins with "State Highway" then return "State Highway" in the &lt;STRONG&gt;&lt;EM&gt;Street Pre Type&lt;/EM&gt;&lt;/STRONG&gt; field?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Attached is a screenshot showing the two fields in the feature class.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Oct 2024 20:38:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/calculate-field-if-statement/m-p/1550182#M89294</guid>
      <dc:creator>CameronKoehler</dc:creator>
      <dc:date>2024-10-18T20:38:54Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Field IF Statement</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/calculate-field-if-statement/m-p/1550222#M89298</link>
      <description>&lt;P&gt;Open the field calculator on the empty field (field1), set to Python.&lt;/P&gt;&lt;P&gt;In code block put your if statement in a function:&lt;/P&gt;&lt;P&gt;def check_value(field2):&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; if "X" in field2:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return "X"&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; elif "Y" in field2:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return "Y"&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; else:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return None&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then in the top box call your function and point it at the second field:&lt;/P&gt;&lt;P&gt;check_value(!F&lt;SPAN&gt;ield2!)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Oct 2024 22:36:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/calculate-field-if-statement/m-p/1550222#M89298</guid>
      <dc:creator>ChristopherCounsell</dc:creator>
      <dc:date>2024-10-18T22:36:50Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Field IF Statement</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/calculate-field-if-statement/m-p/1550223#M89299</link>
      <description>&lt;P&gt;Hi Cameron!&lt;/P&gt;&lt;P&gt;Why yes there is.&lt;/P&gt;&lt;P&gt;I think this help page will supply you with what you need.&lt;/P&gt;&lt;P&gt;&lt;A href="https://support.esri.com/en-us/knowledge-base/how-to-use-if-statements-in-calculator-field-in-arcgis--000027512" target="_blank" rel="noopener"&gt;https://support.esri.com/en-us/knowledge-base/how-to-use-if-statements-in-calculator-field-in-arcgis--000027512&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Let us know how you did!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Oct 2024 22:39:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/calculate-field-if-statement/m-p/1550223#M89299</guid>
      <dc:creator>RonaldHaug</dc:creator>
      <dc:date>2024-10-18T22:39:47Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Field IF Statement</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/calculate-field-if-statement/m-p/1550233#M89302</link>
      <description>&lt;P&gt;Here's a sample with a few notes in the attached screen shot.&amp;nbsp; Good luck.&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="use of python for function with string comparison" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/117645i71FDC7FC66875230/image-size/large?v=v2&amp;amp;px=999" role="button" title="sample calculation.jpg" alt="use of python for function with string comparison" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;use of python for function with string comparison&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Oct 2024 22:54:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/calculate-field-if-statement/m-p/1550233#M89302</guid>
      <dc:creator>KevininMN1</dc:creator>
      <dc:date>2024-10-18T22:54:19Z</dc:date>
    </item>
  </channel>
</rss>

