<?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: Using Arcade to define symbology in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/using-arcade-to-define-symbology/m-p/1508529#M85860</link>
    <description>&lt;P&gt;Okay, I think I'm getting it. Still not totally sure I understand the expression itself, but I see what you're going for. You should take a look at the function &lt;STRONG&gt;When&lt;/STRONG&gt;, which allows you to define complex conditions, then return specific values when they evaluate to "true".&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;return When(
  $feature.ANTENNAREPLACED == 'NA' &amp;amp;&amp;amp; $feature.BREAKERREPLACED == 'NA' &amp;amp;&amp;amp; $feature.SNMPUPDATED == 'NA' &amp;amp;&amp;amp; $feature.REPEATER == 'NS', 'REPEATER',
  some other condition, 'some other value',
  another condition, 'another value',
  'default value'
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 23 Jul 2024 12:59:02 GMT</pubDate>
    <dc:creator>jcarlson</dc:creator>
    <dc:date>2024-07-23T12:59:02Z</dc:date>
    <item>
      <title>Using Arcade to define symbology</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/using-arcade-to-define-symbology/m-p/1508505#M85855</link>
      <description>&lt;P&gt;I have a set of features that need to be defined by 4 attribute and each has 4 possible values. however this generates 256 possible options.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This will allow me to determine Site Not Started, Site in Progress, Site Complete, and Repeater only not started&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This code works to give me all of the sites that are not started.&lt;/P&gt;&lt;P&gt;Var not1 = ($FEATURE.ANTENNAREPLACED == 'NS' &amp;amp;&amp;nbsp; $FEATURE.BREAKERREPLACED == 'NA' &amp;amp;&amp;nbsp; $FEATURE.SNMPUPDATED == 'NA' &amp;amp;&amp;nbsp; $FEATURE.REPEATER == 'NS')&lt;/P&gt;&lt;P&gt;Var not2 = ($FEATURE.ANTENNAREPLACED == 'NA' &amp;amp;&amp;nbsp; $FEATURE.BREAKERREPLACED == 'NS' &amp;amp;&amp;nbsp; $FEATURE.SNMPUPDATED == 'NA' &amp;amp;&amp;nbsp; $FEATURE.REPEATER == 'NS')&lt;/P&gt;&lt;P&gt;Var not3 = ($FEATURE.ANTENNAREPLACED == 'NS' &amp;amp;&amp;nbsp; $FEATURE.BREAKERREPLACED == 'NS' &amp;amp;&amp;nbsp; $FEATURE.SNMPUPDATED == 'NA' &amp;amp;&amp;nbsp; $FEATURE.REPEATER == 'NS')&lt;/P&gt;&lt;P&gt;Var not4 = ($FEATURE.ANTENNAREPLACED == 'NA' &amp;amp;&amp;nbsp; $FEATURE.BREAKERREPLACED == 'NA' &amp;amp;&amp;nbsp; $FEATURE.SNMPUPDATED == 'NS' &amp;amp;&amp;nbsp; $FEATURE.REPEATER == 'NS')&lt;/P&gt;&lt;P&gt;Var not5 = ($FEATURE.ANTENNAREPLACED == 'NS' &amp;amp;&amp;nbsp; $FEATURE.BREAKERREPLACED == 'NA' &amp;amp;&amp;nbsp; $FEATURE.SNMPUPDATED == 'NS' &amp;amp;&amp;nbsp; $FEATURE.REPEATER == 'NS')&lt;/P&gt;&lt;P&gt;Var not6 = ($FEATURE.ANTENNAREPLACED == 'NA' &amp;amp;&amp;nbsp; $FEATURE.BREAKERREPLACED == 'NS' &amp;amp;&amp;nbsp; $FEATURE.SNMPUPDATED == 'NS' &amp;amp;&amp;nbsp; $FEATURE.REPEATER == 'NS')&lt;/P&gt;&lt;P&gt;Var not7 = ($FEATURE.ANTENNAREPLACED == 'NS' &amp;amp;&amp;nbsp; $FEATURE.BREAKERREPLACED == 'NS' &amp;amp;&amp;nbsp; $FEATURE.SNMPUPDATED == 'NS' &amp;amp;&amp;nbsp; $FEATURE.REPEATER == 'NS')&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;return not1 + not2 + not3 + not4 + not5 + not6 +not7&lt;/P&gt;&lt;P&gt;This code will result in all sites with only a repeater&lt;/P&gt;&lt;P&gt;VAR REPEATER = ($feature.ANTENNAREPLACED == 'NA' &amp;amp; $feature.BREAKERREPLACED == 'NA' &amp;amp; $feature.SNMPUPDATED == 'NA' &amp;amp;&amp;nbsp; $feature.REPEATER == 'NS')&lt;/P&gt;&lt;P&gt;However, I need to figure out how to get it to create more than one symbol class&lt;/P&gt;&lt;P&gt;I tried&amp;nbsp;&lt;/P&gt;&lt;P&gt;return with a semi colon in between the final variable&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2024 12:24:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/using-arcade-to-define-symbology/m-p/1508505#M85855</guid>
      <dc:creator>RobertBorchert</dc:creator>
      <dc:date>2024-07-23T12:24:40Z</dc:date>
    </item>
    <item>
      <title>Re: Using Arcade to define symbology</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/using-arcade-to-define-symbology/m-p/1508520#M85858</link>
      <description>&lt;P&gt;Setting symbology to an expression is similar to setting it to a field: the classes generatetd will be based on the &lt;EM&gt;existing&lt;/EM&gt; values in the table. If the value "A" isn't present in the table, there's no reason to expect the program to intuit it as a potential symbol category.&lt;/P&gt;&lt;P&gt;The direct solution is tedious: create the other symbol categories manually.&lt;/P&gt;&lt;P&gt;As an alternative approach, I'm curious how the different attributes are being &lt;EM&gt;used&lt;/EM&gt; in your symbology. Do you intend one field to define the color, another the shape, and so on? Could you have four separate layers to convey each attribute separately?&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2024 12:42:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/using-arcade-to-define-symbology/m-p/1508520#M85858</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2024-07-23T12:42:04Z</dc:date>
    </item>
    <item>
      <title>Re: Using Arcade to define symbology</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/using-arcade-to-define-symbology/m-p/1508524#M85859</link>
      <description>&lt;P&gt;I need four symbol classes&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Site Not Started, Site in Progress, Site Complete, and Repeater only not started&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Before coming here I did generate all 256 combinations in symbology and then grouped them into 4 symbol classes.&amp;nbsp; However, publishing them to a feature service did not work&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2024 12:48:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/using-arcade-to-define-symbology/m-p/1508524#M85859</guid>
      <dc:creator>RobertBorchert</dc:creator>
      <dc:date>2024-07-23T12:48:20Z</dc:date>
    </item>
    <item>
      <title>Re: Using Arcade to define symbology</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/using-arcade-to-define-symbology/m-p/1508529#M85860</link>
      <description>&lt;P&gt;Okay, I think I'm getting it. Still not totally sure I understand the expression itself, but I see what you're going for. You should take a look at the function &lt;STRONG&gt;When&lt;/STRONG&gt;, which allows you to define complex conditions, then return specific values when they evaluate to "true".&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;return When(
  $feature.ANTENNAREPLACED == 'NA' &amp;amp;&amp;amp; $feature.BREAKERREPLACED == 'NA' &amp;amp;&amp;amp; $feature.SNMPUPDATED == 'NA' &amp;amp;&amp;amp; $feature.REPEATER == 'NS', 'REPEATER',
  some other condition, 'some other value',
  another condition, 'another value',
  'default value'
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2024 12:59:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/using-arcade-to-define-symbology/m-p/1508529#M85860</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2024-07-23T12:59:02Z</dc:date>
    </item>
    <item>
      <title>Re: Using Arcade to define symbology</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/using-arcade-to-define-symbology/m-p/1508552#M85862</link>
      <description>&lt;P&gt;I got it to work using an array.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;var MainFieldArray = [repeater, notall]&lt;/P&gt;&lt;P&gt;where repeater and notall are Variables that are defined&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2024 13:31:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/using-arcade-to-define-symbology/m-p/1508552#M85862</guid>
      <dc:creator>RobertBorchert</dc:creator>
      <dc:date>2024-07-23T13:31:00Z</dc:date>
    </item>
  </channel>
</rss>

