<?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: Perform a calculation inside dynamic text in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/perform-a-calculation-inside-dynamic-text/m-p/161108#M12316</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nothing within the &lt;STRONG&gt;&lt;A href="http://pro.arcgis.com/en/pro-app/help/layouts/add-and-modify-dynamic-text.htm"&gt;dynamic text &lt;/A&gt;&lt;/STRONG&gt;section explicitly, but that doesn't rule out producing a static text element from a calculation elsewhere I suspect&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Aug 2017 02:58:46 GMT</pubDate>
    <dc:creator>DanPatterson_Retired</dc:creator>
    <dc:date>2017-08-23T02:58:46Z</dc:date>
    <item>
      <title>Perform a calculation inside dynamic text</title>
      <link>https://community.esri.com/t5/python-questions/perform-a-calculation-inside-dynamic-text/m-p/161107#M12315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to create a dynamic&amp;nbsp;text box as a map label, and it needs to show the &lt;EM&gt;&amp;lt;last year&amp;gt; - &amp;lt;current year&amp;gt;&lt;/EM&gt;, so the text today should look like &lt;EM&gt;2016-2017.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have found this below snippet is correct in displaying&amp;nbsp;&lt;EM&gt;2017&lt;/EM&gt;, but I am unable to work out how to manipulate the below code to subtract 1 from the figure of 2017, in order to display last year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4d4d4d; background-color: #ffffff; font-weight: bold;"&gt;&amp;lt;dyn type="date" format="yyy"/&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas? I would love for there to be a pythonic solution to my dilemma... I just don't know if that would even be possible in a text box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/47933"&gt;Nathan Duncan&lt;/A&gt;‌ FYI&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Aug 2017 01:44:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/perform-a-calculation-inside-dynamic-text/m-p/161107#M12315</guid>
      <dc:creator>BenVan_Kesteren1</dc:creator>
      <dc:date>2017-08-21T01:44:15Z</dc:date>
    </item>
    <item>
      <title>Re: Perform a calculation inside dynamic text</title>
      <link>https://community.esri.com/t5/python-questions/perform-a-calculation-inside-dynamic-text/m-p/161108#M12316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nothing within the &lt;STRONG&gt;&lt;A href="http://pro.arcgis.com/en/pro-app/help/layouts/add-and-modify-dynamic-text.htm"&gt;dynamic text &lt;/A&gt;&lt;/STRONG&gt;section explicitly, but that doesn't rule out producing a static text element from a calculation elsewhere I suspect&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Aug 2017 02:58:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/perform-a-calculation-inside-dynamic-text/m-p/161108#M12316</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-08-23T02:58:46Z</dc:date>
    </item>
  </channel>
</rss>

