<?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: Same AR as been used for a year and only changed numbers, now doesn't work in Attribute Rules Questions</title>
    <link>https://community.esri.com/t5/attribute-rules-questions/same-ar-as-been-used-for-a-year-and-only-changed/m-p/1707739#M1954</link>
    <description>&lt;P&gt;Have you ever tried to use the &lt;A href="https://developers.arcgis.com/arcade/function-reference/logical_functions/#when" target="_self"&gt;When Arcade function&lt;/A&gt;?&amp;nbsp; I see some duplicate else if sections, but i'm not sure that's causing your issue.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ToddW_stl_0-1781206683066.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/153773iB844851586F922D0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ToddW_stl_0-1781206683066.png" alt="ToddW_stl_0-1781206683066.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 11 Jun 2026 19:38:10 GMT</pubDate>
    <dc:creator>ToddW_stl</dc:creator>
    <dc:date>2026-06-11T19:38:10Z</dc:date>
    <item>
      <title>Same AR as been used for a year and only changed numbers, now doesn't work</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/same-ar-as-been-used-for-a-year-and-only-changed/m-p/1707681#M1951</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;AR drive me nuts.&amp;nbsp; I've got AR that have been working for two years!&amp;nbsp; Have not upgraded from the same version written in (3.2.4); yet, I have only changed numbers for calculations and now all of a sudden - 'Close parenthesis expected'.&amp;nbsp; Line where it showing needing is:&lt;/P&gt;&lt;P&gt;if ((parea &amp;gt; 0) &amp;amp;&amp;amp; (billclass == ""V: Vacant"") &amp;amp;&amp;amp; (dor &amp;lt; 6647 &amp;amp;&amp;amp; dor &amp;gt; 5399)) {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; newfee = (((parea/43560)*(12*(0.1*(12.138))))+242.76)&lt;BR /&gt;&amp;nbsp; &amp;nbsp; }&lt;/P&gt;&lt;P&gt;Extra parans around the 12.138 was due to attempting to use a variable set earlier that would do the calcs to get these numbers without having to manually add them in.&amp;nbsp; But that didn't work either.&amp;nbsp; Then it continues with else if.&amp;nbsp; Again, only the 12.138 and 242.76 were changed in the line.&amp;nbsp; When checking in notepad ++, all parentheses are matched.&amp;nbsp; Checked the whole script.&amp;nbsp; All braces are matched as well.&amp;nbsp; This script was edited the same way last year as well and worked.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Lorinda&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jun 2026 16:20:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/same-ar-as-been-used-for-a-year-and-only-changed/m-p/1707681#M1951</guid>
      <dc:creator>LorindaGilbert</dc:creator>
      <dc:date>2026-06-11T16:20:14Z</dc:date>
    </item>
    <item>
      <title>Re: Same AR as been used for a year and only changed numbers, now doesn't work</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/same-ar-as-been-used-for-a-year-and-only-changed/m-p/1707694#M1952</link>
      <description>&lt;P&gt;is this your entire Attribute Rule?&amp;nbsp; please share the entire Arcade code, if you're able to.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jun 2026 16:59:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/same-ar-as-been-used-for-a-year-and-only-changed/m-p/1707694#M1952</guid>
      <dc:creator>ToddW_stl</dc:creator>
      <dc:date>2026-06-11T16:59:37Z</dc:date>
    </item>
    <item>
      <title>Re: Same AR as been used for a year and only changed numbers, now doesn't work</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/same-ar-as-been-used-for-a-year-and-only-changed/m-p/1707706#M1953</link>
      <description>&lt;P&gt;The line that it said was invalid was line 23, so that was all that I put in the email.&lt;/P&gt;&lt;P&gt;Only thing that changed was numbers from last year, mainly the 0.12138&lt;/P&gt;&lt;P&gt;var billclass = $feature.MultiUserType&lt;BR /&gt;// var eru = $feature.ERUArea&lt;BR /&gt;var parea = $feature.IDFParcelArea&lt;BR /&gt;var pimparea = $feature.ImperviousArea&lt;BR /&gt;var dwell = $feature.Dwellings&lt;BR /&gt;var dor = $feature.IDFUseCode&lt;BR /&gt;var newfee = $feature.NewFee&lt;BR /&gt;var runway = $feature.Runway&lt;BR /&gt;var discount = $feature.Discount&lt;BR /&gt;var ouswwm = $feature.PostOUSWWM&lt;/P&gt;&lt;P&gt;// Historical calculations below new calculations&lt;/P&gt;&lt;P&gt;// rate 2025 - 0.08092&lt;BR /&gt;// rate 2026 - 0.10115&lt;BR /&gt;// rate 2027 - 0.12138&lt;BR /&gt;// rate 2028 - 0.12745&lt;BR /&gt;// base per 2000 sq ft - 2000*rate per year&lt;BR /&gt;// base per month - (2000*rate)/12&lt;BR /&gt;// AG (V/G between 5400 and 6646) - base/mth*.6&lt;BR /&gt;// Non-AG (V/G outside of above DOR) base/mth*.4&lt;/P&gt;&lt;P&gt;if ((parea &amp;gt; 0) &amp;amp;&amp;amp; (billclass == ""V: Vacant"") &amp;amp;&amp;amp; (dor &amp;lt; 6647 &amp;amp;&amp;amp; dor &amp;gt; 5399)) {&lt;BR /&gt;newfee = (((parea/43560)*(12*(0.1*(12.138))))+242.76)&lt;BR /&gt;}&lt;BR /&gt;else if ((parea &amp;gt; 43560) &amp;amp;&amp;amp; (billclass == ""V: Vacant"") &amp;amp;&amp;amp; (dor &amp;lt; 5400 || dor &amp;gt; 6647)) {&lt;BR /&gt;newfee = ((parea/43560)*(12*(8.092 +(0.2*12.138))))&lt;BR /&gt;}&lt;BR /&gt;else if ((parea &amp;lt;= 43560) &amp;amp;&amp;amp; (billclass == ""V: Vacant"")) {&lt;BR /&gt;newfee = ((parea/43560)*(12*(8.092 +(0.2*12.138))))&lt;BR /&gt;}&lt;BR /&gt;else if (billclass == ""R: SFR"") {&lt;BR /&gt;newfee = (pimparea*0.12138)&lt;BR /&gt;}&lt;BR /&gt;// OIA&lt;BR /&gt;else if ((billclass == ""G: GOAA"") &amp;amp;&amp;amp; (dor &amp;lt; 6647 &amp;amp;&amp;amp; dor &amp;gt; 5399)) {&lt;BR /&gt;newfee = (((parea/43560)*(12*(0.1*(12.138))))+242.76) //119.88&lt;BR /&gt;}&lt;BR /&gt;// OEA&lt;BR /&gt;else if ((billclass == ""G: GOAA"") &amp;amp;&amp;amp; (dor &amp;lt; 6647 &amp;amp;&amp;amp; dor &amp;gt; 5399)) {&lt;BR /&gt;newfee = (((parea/43560)*(12*(0.1*(12.138))))+242.76) //119.88&lt;BR /&gt;}&lt;BR /&gt;else if ((pimparea == 0) &amp;amp;&amp;amp; (billclass == ""G: GOAA"") &amp;amp;&amp;amp; (dor &amp;lt; 5400 || dor &amp;gt; 6647)) {&lt;BR /&gt;newfee = (((parea/43560)*12)*8.092)&lt;BR /&gt;}&lt;BR /&gt;else if ((pimparea == 0) &amp;amp;&amp;amp; (billclass == ""G: GOAA"") &amp;amp;&amp;amp; (dor &amp;lt; 5400 || dor &amp;gt; 6647)) {&lt;BR /&gt;newfee = (((parea/43560)*12)*8.092)&lt;BR /&gt;}&lt;BR /&gt;else if ((pimparea - runway &amp;gt; 0) &amp;amp;&amp;amp; (billclass == ""G: GOAA"") &amp;amp;&amp;amp; (dor &amp;lt; 5400 || dor &amp;gt; 6647)) {&lt;BR /&gt;newfee = ((pimparea - runway)*(12*8.092)/2000)&lt;BR /&gt;}&lt;BR /&gt;else if ((pimparea - runway &amp;lt;= 0) &amp;amp;&amp;amp; (billclass == ""G: GOAA"") &amp;amp;&amp;amp; (dor &amp;lt; 5400 || dor &amp;gt; 6647)) {&lt;BR /&gt;newfee = (((parea - runway)/43560)*33)&lt;BR /&gt;}&lt;BR /&gt;else if ((pimparea - runway &amp;gt; 0) &amp;amp;&amp;amp; (billclass == ""G: GOAA"") &amp;amp;&amp;amp; (dor &amp;lt; 5400 || dor &amp;gt; 6647)) {&lt;BR /&gt;newfee = ((pimparea - runway)*(12*5.4)/2000)&lt;BR /&gt;}&lt;BR /&gt;else if ((pimparea - runway &amp;lt;= 0) &amp;amp;&amp;amp; (billclass == ""G: GOAA"") &amp;amp;&amp;amp; (dor &amp;lt; 5400 || dor &amp;gt; 6647)) {&lt;BR /&gt;newfee = (((parea - runway)/43560)*33)&lt;BR /&gt;}&lt;BR /&gt;else if ((billclass == ""M: MFR"") &amp;amp;&amp;amp; (dwell == 1) &amp;amp;&amp;amp; (ouswwm == 'N')) {&lt;BR /&gt;newfee = ((pimparea/dwell)*0.12138)&lt;BR /&gt;}&lt;BR /&gt;else if ((billclass == ""M: MFR"") &amp;amp;&amp;amp; (dwell == 1) &amp;amp;&amp;amp; (ouswwm == 'Y')) {&lt;BR /&gt;newfee = (((pimparea/dwell)*0.12138)*0.58)&lt;BR /&gt;}&lt;BR /&gt;else if ((billclass == ""M: MFR"") &amp;amp;&amp;amp; (dwell &amp;gt; 1) &amp;amp;&amp;amp; (ouswwm == 'N')) {&lt;BR /&gt;newfee = (((pimparea/dwell)*0.12138)*dwell)&lt;BR /&gt;}&lt;BR /&gt;else if ((billclass == ""M: MFR"") &amp;amp;&amp;amp; (dwell &amp;gt;1 ) &amp;amp;&amp;amp; (ouswwm == 'Y')) {&lt;BR /&gt;newfee = (((pimparea/dwell)*(0.12138*0.58))*dwell)&lt;BR /&gt;}&lt;BR /&gt;else if (billclass == ""L: Lake"") {&lt;BR /&gt;newfee = 0&lt;BR /&gt;}&lt;BR /&gt;else if ((billclass == ""A: Comm"") &amp;amp;&amp;amp; (ouswwm == 'N')) {&lt;BR /&gt;newfee = (pimparea*0.12138)&lt;BR /&gt;}&lt;BR /&gt;else if ((billclass == ""A: Comm"") &amp;amp;&amp;amp; (ouswwm == 'Y')) {&lt;BR /&gt;newfee = ((pimparea*0.12138)*0.58)&lt;BR /&gt;}&lt;BR /&gt;else if ((billclass == ""O: Office"") &amp;amp;&amp;amp; (ouswwm == 'N')) {&lt;BR /&gt;newfee = (pimparea*0.12138)&lt;BR /&gt;}&lt;BR /&gt;else if ((billclass == ""O: Office"") &amp;amp;&amp;amp; (ouswwm == 'Y')) {&lt;BR /&gt;newfee = ((pimparea*0.12138)*0.58)&lt;BR /&gt;}&lt;BR /&gt;else if ((billclass == ""D: Delete"")) {&lt;BR /&gt;newfee = 0&lt;BR /&gt;}&lt;BR /&gt;return newfee;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jun 2026 17:51:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/same-ar-as-been-used-for-a-year-and-only-changed/m-p/1707706#M1953</guid>
      <dc:creator>LorindaGilbert</dc:creator>
      <dc:date>2026-06-11T17:51:03Z</dc:date>
    </item>
    <item>
      <title>Re: Same AR as been used for a year and only changed numbers, now doesn't work</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/same-ar-as-been-used-for-a-year-and-only-changed/m-p/1707739#M1954</link>
      <description>&lt;P&gt;Have you ever tried to use the &lt;A href="https://developers.arcgis.com/arcade/function-reference/logical_functions/#when" target="_self"&gt;When Arcade function&lt;/A&gt;?&amp;nbsp; I see some duplicate else if sections, but i'm not sure that's causing your issue.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ToddW_stl_0-1781206683066.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/153773iB844851586F922D0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ToddW_stl_0-1781206683066.png" alt="ToddW_stl_0-1781206683066.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jun 2026 19:38:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/same-ar-as-been-used-for-a-year-and-only-changed/m-p/1707739#M1954</guid>
      <dc:creator>ToddW_stl</dc:creator>
      <dc:date>2026-06-11T19:38:10Z</dc:date>
    </item>
  </channel>
</rss>

