<?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 What is the correct Arcade syntax when using ArcGIS Pro? in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/what-is-the-correct-arcade-syntax-when-using/m-p/1011749#M35328</link>
    <description>&lt;P&gt;I originally started writing Arcade expressions in ArcGIS Online. Today I attempted to write an expression in Pro 2.6 with the intention of updating a webmap. I get errors in the Expression Builder that I don't get using AGOL. In ArcGIS Pro, the error states "Invalid expression. Error on line 1. Colon expected."&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="error.png" style="width: 509px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/2732i7A6D7B7BFDBA7077/image-dimensions/509x464?v=v2" width="509" height="464" role="button" title="error.png" alt="error.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;However, this expression works fine on the web version.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 671px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/2733i508C9426BA0FAE3D/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Why don't these work the same? Where does this colon go?&lt;/P&gt;</description>
    <pubDate>Tue, 22 Dec 2020 15:51:19 GMT</pubDate>
    <dc:creator>JasonBennett</dc:creator>
    <dc:date>2020-12-22T15:51:19Z</dc:date>
    <item>
      <title>What is the correct Arcade syntax when using ArcGIS Pro?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/what-is-the-correct-arcade-syntax-when-using/m-p/1011749#M35328</link>
      <description>&lt;P&gt;I originally started writing Arcade expressions in ArcGIS Online. Today I attempted to write an expression in Pro 2.6 with the intention of updating a webmap. I get errors in the Expression Builder that I don't get using AGOL. In ArcGIS Pro, the error states "Invalid expression. Error on line 1. Colon expected."&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="error.png" style="width: 509px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/2732i7A6D7B7BFDBA7077/image-dimensions/509x464?v=v2" width="509" height="464" role="button" title="error.png" alt="error.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;However, this expression works fine on the web version.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 671px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/2733i508C9426BA0FAE3D/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Why don't these work the same? Where does this colon go?&lt;/P&gt;</description>
      <pubDate>Tue, 22 Dec 2020 15:51:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/what-is-the-correct-arcade-syntax-when-using/m-p/1011749#M35328</guid>
      <dc:creator>JasonBennett</dc:creator>
      <dc:date>2020-12-22T15:51:19Z</dc:date>
    </item>
    <item>
      <title>Re: What is the correct Arcade syntax when using ArcGIS Pro?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/what-is-the-correct-arcade-syntax-when-using/m-p/1011759#M35331</link>
      <description>&lt;P&gt;I &lt;EM&gt;think&lt;/EM&gt; the difference is how you are referencing the feature attribute:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;if($feature["HH_STATUS"] == 0)

// try replacing with:

if($feature.HH_STATUS == 0)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Dec 2020 16:28:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/what-is-the-correct-arcade-syntax-when-using/m-p/1011759#M35331</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2020-12-22T16:28:42Z</dc:date>
    </item>
    <item>
      <title>Re: What is the correct Arcade syntax when using ArcGIS Pro?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/what-is-the-correct-arcade-syntax-when-using/m-p/1011773#M35334</link>
      <description>&lt;P&gt;Joe, I don't think that is the issue, or should be.&amp;nbsp; According to Esri's own documentation: &lt;A href="https://developers.arcgis.com/arcade/guide/logic/" target="_blank"&gt;Structure And Logic | ArcGIS for Developers&lt;/A&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;Attribute values can be referenced using the . syntax or with square brackets.&lt;/BLOCKQUOTE&gt;&lt;P&gt;If changing between dot and bracket does change the result, then it is a defect.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Dec 2020 16:48:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/what-is-the-correct-arcade-syntax-when-using/m-p/1011773#M35334</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2020-12-22T16:48:54Z</dc:date>
    </item>
    <item>
      <title>Re: What is the correct Arcade syntax when using ArcGIS Pro?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/what-is-the-correct-arcade-syntax-when-using/m-p/1011776#M35336</link>
      <description>&lt;P&gt;Hence&amp;nbsp; '&lt;EM&gt;think'&lt;/EM&gt; in italics.&amp;nbsp; I've never written arcade for anything but Pro, and always used the $featureDotAttribute syntax...&lt;/P&gt;</description>
      <pubDate>Tue, 22 Dec 2020 16:58:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/what-is-the-correct-arcade-syntax-when-using/m-p/1011776#M35336</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2020-12-22T16:58:12Z</dc:date>
    </item>
    <item>
      <title>Re: What is the correct Arcade syntax when using ArcGIS Pro?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/what-is-the-correct-arcade-syntax-when-using/m-p/1012432#M35454</link>
      <description>&lt;P&gt;Thanks for the suggestion.&lt;BR /&gt;&lt;BR /&gt;As it turns out, it doesn't care about the syntax for HH_Status. That works with both dots and square brackets. But Manhole_Type inside curly brackets was the violation.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;if ($feature["HH_Status"] == 0) {return "Proposed " + $feature.Manhole_Type}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Edit: For my purposes, this worked:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;if ($feature["HH_Status"] == 0) {return "Proposed " + DomainName($feature,"Manhole_Type")}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Dec 2020 14:32:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/what-is-the-correct-arcade-syntax-when-using/m-p/1012432#M35454</guid>
      <dc:creator>JasonBennett</dc:creator>
      <dc:date>2020-12-28T14:32:34Z</dc:date>
    </item>
  </channel>
</rss>

