<?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 Attribute Rule Expressions error message &amp;quot;Identifier Expected&amp;quot; in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/attribute-rule-expressions-error-message-quot/m-p/1244423#M63841</link>
    <description>&lt;P&gt;I've tried a few different methods to resolved this issue, but I can't figure out what it doesn't like. I'm more comfortable with Python, but attribute rules only except Arcade. I've tried to follow the guidelines laid out &lt;A title="How To: Populate a field based on values in other fields using ArcGIS Arcade in ArcGIS Online" href="https://support.esri.com/en/technical-article/000024112&amp;nbsp;" target="_blank" rel="noopener"&gt;here&lt;/A&gt;. I don't have semi-colons here because it isn't in the instructions in the link provided, but I did try with semi-colons at the end of the lines.&amp;nbsp;&lt;/P&gt;&lt;P&gt;var value = $feature.Code;&lt;BR /&gt;if (Left(value, 1)) == "0A" {return "Eastern"}&lt;BR /&gt;if (Left(value, 2)) == "0B" {return "Northern"}&lt;BR /&gt;if (Left(value, 2)) == "0C" {return "Southern"}&lt;BR /&gt;if (Left(value, 2)) == "0D" {return "Western"}&lt;BR /&gt;else {return "Other"}&lt;/P&gt;</description>
    <pubDate>Thu, 29 Dec 2022 21:58:31 GMT</pubDate>
    <dc:creator>SaraHedrick1</dc:creator>
    <dc:date>2022-12-29T21:58:31Z</dc:date>
    <item>
      <title>Attribute Rule Expressions error message "Identifier Expected"</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/attribute-rule-expressions-error-message-quot/m-p/1244423#M63841</link>
      <description>&lt;P&gt;I've tried a few different methods to resolved this issue, but I can't figure out what it doesn't like. I'm more comfortable with Python, but attribute rules only except Arcade. I've tried to follow the guidelines laid out &lt;A title="How To: Populate a field based on values in other fields using ArcGIS Arcade in ArcGIS Online" href="https://support.esri.com/en/technical-article/000024112&amp;nbsp;" target="_blank" rel="noopener"&gt;here&lt;/A&gt;. I don't have semi-colons here because it isn't in the instructions in the link provided, but I did try with semi-colons at the end of the lines.&amp;nbsp;&lt;/P&gt;&lt;P&gt;var value = $feature.Code;&lt;BR /&gt;if (Left(value, 1)) == "0A" {return "Eastern"}&lt;BR /&gt;if (Left(value, 2)) == "0B" {return "Northern"}&lt;BR /&gt;if (Left(value, 2)) == "0C" {return "Southern"}&lt;BR /&gt;if (Left(value, 2)) == "0D" {return "Western"}&lt;BR /&gt;else {return "Other"}&lt;/P&gt;</description>
      <pubDate>Thu, 29 Dec 2022 21:58:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/attribute-rule-expressions-error-message-quot/m-p/1244423#M63841</guid>
      <dc:creator>SaraHedrick1</dc:creator>
      <dc:date>2022-12-29T21:58:31Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute Rule Expressions error message "Identifier Expected"</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/attribute-rule-expressions-error-message-quot/m-p/1244447#M63846</link>
      <description>&lt;P&gt;You had parenthesis in the wrong place.&lt;BR /&gt;See if this code fixes your problem:&lt;BR /&gt;&lt;BR /&gt;var value = $feature.Code;&lt;BR /&gt;if (Left(value, 1) == "0A") {return "Eastern"}&lt;BR /&gt;if (Left(value, 2) == "0B") {return "Northern"}&lt;BR /&gt;if (Left(value, 2) == "0C") {return "Southern"}&lt;BR /&gt;if (Left(value, 2) == "0D") {return "Western"}&lt;BR /&gt;else {return "Other"}&lt;/P&gt;</description>
      <pubDate>Fri, 30 Dec 2022 00:49:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/attribute-rule-expressions-error-message-quot/m-p/1244447#M63846</guid>
      <dc:creator>GoWest</dc:creator>
      <dc:date>2022-12-30T00:49:36Z</dc:date>
    </item>
  </channel>
</rss>

