<?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: Arcade - add new values to Dictionary in Attribute Rules Questions</title>
    <link>https://community.esri.com/t5/attribute-rules-questions/arcade-add-new-values-to-dictionary/m-p/1201879#M511</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Thank you Josh Carlson! This is the example I was looking for.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 11 Aug 2022 14:00:05 GMT</pubDate>
    <dc:creator>girafee</dc:creator>
    <dc:date>2022-08-11T14:00:05Z</dc:date>
    <item>
      <title>Arcade - add new values to Dictionary</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/arcade-add-new-values-to-dictionary/m-p/1201869#M509</link>
      <description>&lt;P&gt;Hi! I want to add new values to the dictionary and haven't found a method that can help me.&lt;/P&gt;&lt;LI-CODE lang="c"&gt;var first = Dictionary('field1', 1, 'field2', 2)&lt;/LI-CODE&gt;&lt;P&gt;If I want to add new key/value in the Dictionary, what can I use?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Aug 2022 13:50:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/arcade-add-new-values-to-dictionary/m-p/1201869#M509</guid>
      <dc:creator>girafee</dc:creator>
      <dc:date>2022-08-11T13:50:52Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade - add new values to Dictionary</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/arcade-add-new-values-to-dictionary/m-p/1201875#M510</link>
      <description>&lt;P&gt;By assigning a value to a key, Arcade will overwrite an existing value or create a new key if it doesn't already exist.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var f = Dictionary('field1', 1, 'field2', 2)

// add new key/value pair
f['field3'] = 'hey'

// overwrite existing value
f['field1'] = 'overwrite!'

return f&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jcarlson_0-1660226026057.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/48417iDE84E7506B8F8C10/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jcarlson_0-1660226026057.png" alt="jcarlson_0-1660226026057.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;PS - I'm assuming that's just a made-up sample, but don't use existing function names like &lt;STRONG&gt;first&lt;/STRONG&gt; as variable names, it's just asking for trouble!&lt;/P&gt;</description>
      <pubDate>Thu, 11 Aug 2022 13:55:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/arcade-add-new-values-to-dictionary/m-p/1201875#M510</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2022-08-11T13:55:04Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade - add new values to Dictionary</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/arcade-add-new-values-to-dictionary/m-p/1201879#M511</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Thank you Josh Carlson! This is the example I was looking for.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Aug 2022 14:00:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/arcade-add-new-values-to-dictionary/m-p/1201879#M511</guid>
      <dc:creator>girafee</dc:creator>
      <dc:date>2022-08-11T14:00:05Z</dc:date>
    </item>
  </channel>
</rss>

