<?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: Help with if statement in Aracde in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/help-with-if-statement-in-aracde/m-p/362159#M15894</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you have that many items, you should consider using a dictionary.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/message/856040-re-use-dictionary-to-configure-pop-up"&gt;https://community.esri.com/message/856040-re-use-dictionary-to-configure-pop-up&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Mar 2020 16:27:37 GMT</pubDate>
    <dc:creator>KenBuja</dc:creator>
    <dc:date>2020-03-30T16:27:37Z</dc:date>
    <item>
      <title>Help with if statement in Aracde</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/help-with-if-statement-in-aracde/m-p/362156#M15891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a number of vehicles being tracked and the label field is a number for the Truck number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would to label the trucks based on who the assigned driver is.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The label field looks like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;166 - PU HD&lt;/P&gt;&lt;P&gt;166 being the truck number. and I want to label is as "VOSS".&amp;nbsp; In Pro it is just fine to make label classes based on the truck numbers, but the map will not carry over to a web map.&amp;nbsp; Unless there is a way to make label classes for a web map&lt;/P&gt;&lt;P&gt;So I want to do&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if($feature.label = "166 - PU HD", "VOSS", (if($feature.label = "186 - PU HD", "LANGLEY","none"))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have looked at a number of examples but the are not working.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2020 13:37:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/help-with-if-statement-in-aracde/m-p/362156#M15891</guid>
      <dc:creator>RobertBorchert</dc:creator>
      <dc:date>2020-03-30T13:37:26Z</dc:date>
    </item>
    <item>
      <title>Re: Help with if statement in Aracde</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/help-with-if-statement-in-aracde/m-p/362157#M15892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;IIf($feature.label == "166 - PU HD", "VOSS", "LANGLEY")‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="486767" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/486767_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2020 14:53:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/help-with-if-statement-in-aracde/m-p/362157#M15892</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2020-03-30T14:53:03Z</dc:date>
    </item>
    <item>
      <title>Re: Help with if statement in Aracde</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/help-with-if-statement-in-aracde/m-p/362158#M15893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks that's helped. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am able to then continue on&amp;nbsp; with multiple iif statements.&amp;nbsp; I have 12 trucks to label&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #9bbb59;"&gt;IIf&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;$feature&lt;/SPAN&gt;.label &lt;SPAN style="color: #808080;"&gt;==&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;"166 - PU HD"&lt;/SPAN&gt;, &lt;SPAN style="color: #ff0000;"&gt;"VOSS"&lt;/SPAN&gt;, &lt;SPAN style="color: #9bbb59;"&gt;iif&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;$feature&lt;/SPAN&gt;.label &lt;SPAN style="color: #808080;"&gt;==&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;"154 - SUV HD"&lt;/SPAN&gt;,&lt;SPAN style="color: #ff0000;"&gt;"LANGLEY"&lt;/SPAN&gt;,&lt;SPAN style="color: #ff0000;"&gt;"None"&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2020 15:02:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/help-with-if-statement-in-aracde/m-p/362158#M15893</guid>
      <dc:creator>RobertBorchert</dc:creator>
      <dc:date>2020-03-30T15:02:10Z</dc:date>
    </item>
    <item>
      <title>Re: Help with if statement in Aracde</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/help-with-if-statement-in-aracde/m-p/362159#M15894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you have that many items, you should consider using a dictionary.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/message/856040-re-use-dictionary-to-configure-pop-up"&gt;https://community.esri.com/message/856040-re-use-dictionary-to-configure-pop-up&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2020 16:27:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/help-with-if-statement-in-aracde/m-p/362159#M15894</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2020-03-30T16:27:37Z</dc:date>
    </item>
    <item>
      <title>Re: Help with if statement in Aracde</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/help-with-if-statement-in-aracde/m-p/362160#M15895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have never tried using a dictionary but I will look into it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I was able to solve the issue. I asked our GIS Lead about creating a domain out of the driver_id and putting that in.&amp;nbsp; That actually was something he had thought we should do as there are other departments that use our AVL web map and others wanted to see names rather than truck numbers.&amp;nbsp; The Driver ID field in our AVL is a long integer field.&amp;nbsp; Adding a domain took a few seconds.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2020 19:00:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/help-with-if-statement-in-aracde/m-p/362160#M15895</guid>
      <dc:creator>RobertBorchert</dc:creator>
      <dc:date>2020-03-30T19:00:01Z</dc:date>
    </item>
  </channel>
</rss>

