<?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 How to calculate a string with the value from the previous string in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/how-to-calculate-a-string-with-the-value-from-the/m-p/1033894#M38266</link>
    <description>&lt;P&gt;Dear all,&amp;nbsp;&lt;SPAN&gt;please tell me,&amp;nbsp;what code should I type in the calculator ArcGIS for&amp;nbsp;fill strings with the value from the previous strings (from different columns)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="q1.jpg" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/7803i9456C53C8A646620/image-size/medium?v=v2&amp;amp;px=400" role="button" title="q1.jpg" alt="q1.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="q2.jpg" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/7802iA09EDBFF5ABB8CCF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="q2.jpg" alt="q2.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;</description>
    <pubDate>Mon, 08 Mar 2021 13:10:22 GMT</pubDate>
    <dc:creator>SlavaSemenov</dc:creator>
    <dc:date>2021-03-08T13:10:22Z</dc:date>
    <item>
      <title>How to calculate a string with the value from the previous string</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/how-to-calculate-a-string-with-the-value-from-the/m-p/1033894#M38266</link>
      <description>&lt;P&gt;Dear all,&amp;nbsp;&lt;SPAN&gt;please tell me,&amp;nbsp;what code should I type in the calculator ArcGIS for&amp;nbsp;fill strings with the value from the previous strings (from different columns)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="q1.jpg" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/7803i9456C53C8A646620/image-size/medium?v=v2&amp;amp;px=400" role="button" title="q1.jpg" alt="q1.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="q2.jpg" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/7802iA09EDBFF5ABB8CCF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="q2.jpg" alt="q2.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;</description>
      <pubDate>Mon, 08 Mar 2021 13:10:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/how-to-calculate-a-string-with-the-value-from-the/m-p/1033894#M38266</guid>
      <dc:creator>SlavaSemenov</dc:creator>
      <dc:date>2021-03-08T13:10:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate a string with the value from the previous string</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/how-to-calculate-a-string-with-the-value-from-the/m-p/1033900#M38267</link>
      <description>&lt;P&gt;Would you also be wanting to add together 698 + 349, or just return the last number - 349, or the first - 698?&lt;/P&gt;&lt;P&gt;What is this table? It really seems a truly horrific way to store data.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Mar 2021 13:37:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/how-to-calculate-a-string-with-the-value-from-the/m-p/1033900#M38267</guid>
      <dc:creator>DavidPike</dc:creator>
      <dc:date>2021-03-08T13:37:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate a string with the value from the previous string</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/how-to-calculate-a-string-with-the-value-from-the/m-p/1033903#M38268</link>
      <description>&lt;P&gt;&lt;SPAN&gt;just return 698.- (as text)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Yes, I agry, it's terrible)))&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Mar 2021 13:52:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/how-to-calculate-a-string-with-the-value-from-the/m-p/1033903#M38268</guid>
      <dc:creator>SlavaSemenov</dc:creator>
      <dc:date>2021-03-08T13:52:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate a string with the value from the previous string</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/how-to-calculate-a-string-with-the-value-from-the/m-p/1033942#M38269</link>
      <description>&lt;P&gt;There is no easy solution&lt;/P&gt;&lt;P&gt;The quickest would be to use&lt;/P&gt;&lt;P&gt;TableToExcel&amp;nbsp;&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/conversion/table-to-excel.htm" target="_blank"&gt;Table To Excel (Conversion)—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;fix the table up there then use&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/conversion/excel-to-table.htm" target="_blank"&gt;Excel To Table (Conversion)—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;to bring the table back.&lt;/P&gt;&lt;P&gt;If that table is part of a feature class, then you will have to Join it to the original featureclass&lt;/P&gt;</description>
      <pubDate>Mon, 08 Mar 2021 14:42:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/how-to-calculate-a-string-with-the-value-from-the/m-p/1033942#M38269</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2021-03-08T14:42:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate a string with the value from the previous string</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/how-to-calculate-a-string-with-the-value-from-the/m-p/1033981#M38270</link>
      <description>&lt;P&gt;It's very messy, but this should work (you'll have to enter the first value manually after).&amp;nbsp; I'm also not sure how it will cope with the logical test on empty strings rather than Null (None type) but we can adjust, or possibly export to a table which sets Null values.&lt;/P&gt;&lt;P&gt;pre-logic script code block&lt;/P&gt;&lt;LI-CODE lang="python"&gt;true_false = False
value = ''
def my_function(field1, field2):
    global true_false
    global value
    if field1:
        true_false = True
        return value
        
    elif true_false:
        value = field2
        true_false = False&lt;/LI-CODE&gt;&lt;P&gt;Field3 =&lt;/P&gt;&lt;LI-CODE lang="python"&gt;my_function( !Field1!, !Field2!)&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="aaa1.png" style="width: 595px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/7822i8065E04B1DBB3C78/image-size/large?v=v2&amp;amp;px=999" role="button" title="aaa1.png" alt="aaa1.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="aaa2.png" style="width: 457px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/7823i1065238FC2F8DD19/image-size/large?v=v2&amp;amp;px=999" role="button" title="aaa2.png" alt="aaa2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Mar 2021 15:59:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/how-to-calculate-a-string-with-the-value-from-the/m-p/1033981#M38270</guid>
      <dc:creator>DavidPike</dc:creator>
      <dc:date>2021-03-08T15:59:49Z</dc:date>
    </item>
  </channel>
</rss>

