<?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 Split and Get value with arcade in Developers Questions</title>
    <link>https://community.esri.com/t5/developers-questions/split-and-get-value-with-arcade/m-p/1067361#M5902</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;On Arcgis Portal, I would like to represent my buses line with Arcade and HTML. I would like get the number of the line and &lt;SPAN&gt;put colors in relation to the numbers.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;My value are like that on my stop feature : Line 1, Line 2, ..., Test 56.&lt;/P&gt;&lt;P&gt;My first problem is to get the number only. I can split the field but then I don't know how the get the value.&lt;/P&gt;&lt;P&gt;Is someone think it's possible or too complicated? With&amp;nbsp;&lt;EM&gt;IIf &lt;/EM&gt;maybe&lt;EM&gt;?&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;I know this blog but my problem is little more different. &lt;A href="https://www.esri.com/arcgis-blog/products/arcgis-online/mapping/combining-arcade-and-html-for-a-real-life-pop-up-display/" target="_blank" rel="noopener"&gt;https://www.esri.com/arcgis-blog/products/arcgis-online/mapping/combining-arcade-and-html-for-a-real-life-pop-up-display/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thank you&lt;/P&gt;</description>
    <pubDate>Fri, 11 Jun 2021 15:06:05 GMT</pubDate>
    <dc:creator>KARIMLABIDI</dc:creator>
    <dc:date>2021-06-11T15:06:05Z</dc:date>
    <item>
      <title>Split and Get value with arcade</title>
      <link>https://community.esri.com/t5/developers-questions/split-and-get-value-with-arcade/m-p/1067361#M5902</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;On Arcgis Portal, I would like to represent my buses line with Arcade and HTML. I would like get the number of the line and &lt;SPAN&gt;put colors in relation to the numbers.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;My value are like that on my stop feature : Line 1, Line 2, ..., Test 56.&lt;/P&gt;&lt;P&gt;My first problem is to get the number only. I can split the field but then I don't know how the get the value.&lt;/P&gt;&lt;P&gt;Is someone think it's possible or too complicated? With&amp;nbsp;&lt;EM&gt;IIf &lt;/EM&gt;maybe&lt;EM&gt;?&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;I know this blog but my problem is little more different. &lt;A href="https://www.esri.com/arcgis-blog/products/arcgis-online/mapping/combining-arcade-and-html-for-a-real-life-pop-up-display/" target="_blank" rel="noopener"&gt;https://www.esri.com/arcgis-blog/products/arcgis-online/mapping/combining-arcade-and-html-for-a-real-life-pop-up-display/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jun 2021 15:06:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/split-and-get-value-with-arcade/m-p/1067361#M5902</guid>
      <dc:creator>KARIMLABIDI</dc:creator>
      <dc:date>2021-06-11T15:06:05Z</dc:date>
    </item>
    <item>
      <title>Re: Split and Get value with arcade</title>
      <link>https://community.esri.com/t5/developers-questions/split-and-get-value-with-arcade/m-p/1067416#M5903</link>
      <description>&lt;P&gt;So is your example, "&lt;EM&gt;Line 1, Line 2, ..., Test 56&lt;/EM&gt;" for a single point? How do you envision a stop being displayed when there are multiple values?&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jun 2021 16:58:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/split-and-get-value-with-arcade/m-p/1067416#M5903</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2021-06-11T16:58:14Z</dc:date>
    </item>
    <item>
      <title>Re: Split and Get value with arcade</title>
      <link>https://community.esri.com/t5/developers-questions/split-and-get-value-with-arcade/m-p/1067419#M5904</link>
      <description>&lt;P&gt;I don't know maybe with multiple Iif ?If I can split the field and get each value, after that maybe with Iif (Left($feature.field),4) == "Test"), "#color", Iif ((Left($feature.field),4) == "Line"), "#color2"),...&lt;/P&gt;&lt;P&gt;I don't know if it's possible.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jun 2021 17:04:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/split-and-get-value-with-arcade/m-p/1067419#M5904</guid>
      <dc:creator>KARIMLABIDI</dc:creator>
      <dc:date>2021-06-11T17:04:39Z</dc:date>
    </item>
    <item>
      <title>Re: Split and Get value with arcade</title>
      <link>https://community.esri.com/t5/developers-questions/split-and-get-value-with-arcade/m-p/1067440#M5905</link>
      <description>&lt;P&gt;The trouble is, you're only going to be able to output a single color. So your popup could have some kind of element, maybe a shape or a line of text, but you can only define its color once.&lt;/P&gt;&lt;P&gt;If you want one element per line associated with the stop, you'll need some way to identify each line separately. Meaning, each line will need its own expression.&lt;/P&gt;&lt;P&gt;You can &lt;EM&gt;try &lt;/EM&gt;to create a list of lines in a single expression, but what you'll find is that HTML tags have to be established in the popup, &lt;EM&gt;not &lt;/EM&gt;in the expression. When you try to use HTML in the expression itself, you get this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jcarlson_0-1623432144347.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/15767i0921E82BA10238B1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jcarlson_0-1623432144347.png" alt="jcarlson_0-1623432144347.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The &amp;lt;...&amp;gt; items are treated as raw text, not HTML.&lt;/P&gt;&lt;P&gt;So for each possible line, you need some kind of placeholder in the popup. Depending on the number of possible lines, this can lead to a rather inelegant popup.&lt;/P&gt;&lt;P&gt;This might be too far outside the scope of your question, but how much control do you have over the data? Would it be possible to establish a relationship class between the stops and lines? The string-based list of Lines just seems difficult to work with.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jun 2021 17:28:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/split-and-get-value-with-arcade/m-p/1067440#M5905</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2021-06-11T17:28:15Z</dc:date>
    </item>
    <item>
      <title>Re: Split and Get value with arcade</title>
      <link>https://community.esri.com/t5/developers-questions/split-and-get-value-with-arcade/m-p/1068796#M5906</link>
      <description>&lt;P&gt;Hello Josh, thank for your answer.&lt;/P&gt;&lt;P&gt;There 's still have a relationship class between the stops and the lines. how see you the things?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jun 2021 08:53:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/split-and-get-value-with-arcade/m-p/1068796#M5906</guid>
      <dc:creator>KARIMLABIDI</dc:creator>
      <dc:date>2021-06-16T08:53:48Z</dc:date>
    </item>
    <item>
      <title>Re: Split and Get value with arcade</title>
      <link>https://community.esri.com/t5/developers-questions/split-and-get-value-with-arcade/m-p/1069256#M5909</link>
      <description>&lt;P&gt;As Josh said, if you want to format the lines differently in the popup, you will have to create an expression for each of your lines.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;// expression/show_line_1
// returns "none" if "Line 1" is not found in the Line field
// returns "block" if it is found
var result = Find("Line 1", $feature.LineField)
if(result == -1) { return "none" }
return "block"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In your popup configuration, switch to HTML source.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;p style="font-weight: bold;"&amp;gt;Lines at this stop:&amp;lt;/p&amp;gt;
&amp;lt;div style="display: {expression/show_line_1}; color: red;"&amp;gt;Line 1&amp;lt;/div&amp;gt;
&amp;lt;div style="display: {expression/show_line_2}; color: green;"&amp;gt;Line 2&amp;lt;/div&amp;gt;
&amp;lt;div style="display: {expression/show_line_3}; color: blue; background:black;"&amp;gt;Line 3&amp;lt;/div&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you return "inline" instead of "block " in the expression, the lines will be shown next to each other.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jun 2021 08:38:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/split-and-get-value-with-arcade/m-p/1069256#M5909</guid>
      <dc:creator>JohannesLindner</dc:creator>
      <dc:date>2021-06-17T08:38:23Z</dc:date>
    </item>
    <item>
      <title>Re: Split and Get value with arcade</title>
      <link>https://community.esri.com/t5/developers-questions/split-and-get-value-with-arcade/m-p/1070232#M5918</link>
      <description>&lt;P&gt;Hi Johannes, it works like a charm!&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KARIMLABIDI_0-1624220152110.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/16414i4A200271E57D8EA6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="KARIMLABIDI_0-1624220152110.png" alt="KARIMLABIDI_0-1624220152110.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;But I Have a problem with the Find fonction: it finds me every word beginning by a B or a C as we see in the image. Even when my line calls 1 or 11, it finds the both.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KARIMLABIDI_1-1624220282004.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/16415iCB4BC33F9C92A3BE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="KARIMLABIDI_1-1624220282004.png" alt="KARIMLABIDI_1-1624220282004.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;How can I solve this little problem? I have tried with the lenght of the value or a other value of a other field but I didn't success.&lt;/P&gt;&lt;P&gt;If you have any idea, it would be very nice ! Thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 20 Jun 2021 20:21:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/split-and-get-value-with-arcade/m-p/1070232#M5918</guid>
      <dc:creator>KARIMLABIDI</dc:creator>
      <dc:date>2021-06-20T20:21:42Z</dc:date>
    </item>
    <item>
      <title>Re: Split and Get value with arcade</title>
      <link>https://community.esri.com/t5/developers-questions/split-and-get-value-with-arcade/m-p/1070277#M5919</link>
      <description>&lt;P&gt;If your lines are always separated by the same character ("/" in your image), you can use this:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;// show_line_1
var lines = Split($feature.LineField, "/")
return IIF(Includes(lines, "Line 1"), "block", "none")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If Includes is not available for you yet (it came with the latest Arcade version), it would be a bit more cumbersome:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;// show_line_1
var lines = Split($feature.LineField, "/")
for(var i in lines) {
  if(lines[i] == "Line 1") { return "block" }
}
return "none"&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 21 Jun 2021 05:10:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/split-and-get-value-with-arcade/m-p/1070277#M5919</guid>
      <dc:creator>JohannesLindner</dc:creator>
      <dc:date>2021-06-21T05:10:59Z</dc:date>
    </item>
    <item>
      <title>Re: Split and Get value with arcade</title>
      <link>https://community.esri.com/t5/developers-questions/split-and-get-value-with-arcade/m-p/1070484#M5920</link>
      <description>&lt;P&gt;Yes it works! Thank you so much Johannes!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jun 2021 15:24:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/split-and-get-value-with-arcade/m-p/1070484#M5920</guid>
      <dc:creator>KARIMLABIDI</dc:creator>
      <dc:date>2021-06-21T15:24:46Z</dc:date>
    </item>
    <item>
      <title>Re: Split and Get value with arcade</title>
      <link>https://community.esri.com/t5/developers-questions/split-and-get-value-with-arcade/m-p/1070854#M5921</link>
      <description>&lt;P&gt;Good to hear, glad I could help.&lt;/P&gt;&lt;P&gt;Please mark an answer as solution, so that it gets shown at the top directly under the question.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jun 2021 06:33:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/split-and-get-value-with-arcade/m-p/1070854#M5921</guid>
      <dc:creator>JohannesLindner</dc:creator>
      <dc:date>2021-06-22T06:33:22Z</dc:date>
    </item>
    <item>
      <title>Re: Split and Get value with arcade</title>
      <link>https://community.esri.com/t5/developers-questions/split-and-get-value-with-arcade/m-p/1109192#M6036</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;real nice. I was looking for this. I was wondering if it is possible to add hyperlinks, according to the field attribute. My problem here is that I would like to show an alias of the hyperlink. but the Equip field can have more than one equipment (therefore I am using your solution for split).&lt;/P&gt;&lt;P&gt;I hope u can understand my difficulty.&lt;/P&gt;&lt;P&gt;cheers&lt;/P&gt;&lt;P&gt;Pedro&lt;/P&gt;&lt;LI-CODE lang="c"&gt;// show_line_1
var lines = Split($feature.Equip, ",")
for(var i in lines) {
  if(lines[i] == "car") { return "https://luxe.digital/lifestyle/cars/fastest-cars/" }
}
return "none"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Oct 2021 13:37:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/split-and-get-value-with-arcade/m-p/1109192#M6036</guid>
      <dc:creator>PSGeo</dc:creator>
      <dc:date>2021-10-20T13:37:28Z</dc:date>
    </item>
    <item>
      <title>Re: Split and Get value with arcade</title>
      <link>https://community.esri.com/t5/developers-questions/split-and-get-value-with-arcade/m-p/1109546#M6038</link>
      <description>&lt;P&gt;So if "car" is in your equipment field, you always want to return that link, but with an alias like "These are the fastest cars"? In that case you would put the link into the popup's HTML and show or hide it with the expression:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;div style="display: {expression/show_car};"&amp;gt;&amp;lt;a href="https://luxe.digital/lifestyle/cars/fastest-cars"&amp;gt;These are the fastest cars&amp;lt;/a&amp;gt;&amp;lt;/div&amp;gt;
&amp;lt;div style="display: {expression/show_ship};"&amp;gt;&amp;lt;a href="https://..../biggest-ships"&amp;gt;These are the biggest cruise ships&amp;lt;/a&amp;gt;&amp;lt;/div&amp;gt;&lt;/LI-CODE&gt;&lt;LI-CODE lang="c"&gt;// show_car
var lines = Split($feature.Equip, ",")
for(var i in lines) {
  if(lines[i] == "car") { return "block" }
}
return "none"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Oct 2021 05:07:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/split-and-get-value-with-arcade/m-p/1109546#M6038</guid>
      <dc:creator>JohannesLindner</dc:creator>
      <dc:date>2021-10-21T05:07:26Z</dc:date>
    </item>
    <item>
      <title>Re: Split and Get value with arcade</title>
      <link>https://community.esri.com/t5/developers-questions/split-and-get-value-with-arcade/m-p/1109584#M6039</link>
      <description>&lt;P&gt;Hi thanks for the answer.&lt;/P&gt;&lt;P&gt;But I cannot understand where to add it in the popup HTML. I click a dot on my map, the popup is shown and than I do CTRL+U... but in the HTML I cannot find the part of the popup and where to add your code.&lt;/P&gt;&lt;P&gt;maybe is a dumb question but I don't know this.&lt;/P&gt;&lt;P&gt;cheers&lt;/P&gt;&lt;P&gt;Pedro&lt;/P&gt;</description>
      <pubDate>Thu, 21 Oct 2021 09:53:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/split-and-get-value-with-arcade/m-p/1109584#M6039</guid>
      <dc:creator>PSGeo</dc:creator>
      <dc:date>2021-10-21T09:53:18Z</dc:date>
    </item>
    <item>
      <title>Re: Split and Get value with arcade</title>
      <link>https://community.esri.com/t5/developers-questions/split-and-get-value-with-arcade/m-p/1109606#M6040</link>
      <description>&lt;P&gt;When you configure your popup, there is an option to switch to the HTML source.&lt;/P&gt;&lt;P&gt;ArcGIS Pro:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JohannesLindner_0-1634810688873.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/25714i5A27B62C7AA5C503/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JohannesLindner_0-1634810688873.png" alt="JohannesLindner_0-1634810688873.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JohannesLindner_1-1634810724723.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/25715i1173841D87219996/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JohannesLindner_1-1634810724723.png" alt="JohannesLindner_1-1634810724723.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Map Viewer Classic:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JohannesLindner_2-1634810950851.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/25724i8B5CDB6DD7C4CD4F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JohannesLindner_2-1634810950851.png" alt="JohannesLindner_2-1634810950851.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JohannesLindner_3-1634811001416.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/25725iF27556E0E41602BF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JohannesLindner_3-1634811001416.png" alt="JohannesLindner_3-1634811001416.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Oct 2021 10:10:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/split-and-get-value-with-arcade/m-p/1109606#M6040</guid>
      <dc:creator>JohannesLindner</dc:creator>
      <dc:date>2021-10-21T10:10:38Z</dc:date>
    </item>
    <item>
      <title>Re: Split and Get value with arcade</title>
      <link>https://community.esri.com/t5/developers-questions/split-and-get-value-with-arcade/m-p/1109629#M6041</link>
      <description>&lt;P&gt;Fantastic, it worked. &amp;lt;learning everyday&amp;gt;&lt;/P&gt;&lt;P&gt;my doubt now is the following. As I have different hyperlinks per vehicle how can I show it in the popup the name (hyperlinked)? Let's say car to the car page, and bike to the bike page - sometimes single one, sometimes both.&lt;/P&gt;&lt;P&gt;cheers&lt;/P&gt;&lt;P&gt;Pedro&lt;/P&gt;&lt;LI-CODE lang="c"&gt;// show_car
var lines = Split($feature.Equip, ",")
for(var i in lines) {
  if(lines[i] == "car") { return "block" }
  if(lines[i] == "bike") { return "block" }
  if(lines[i] == "boat") { return "block" }
  if(lines[i] == "etc...") { return "block" }
}
return "none"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Oct 2021 11:08:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/split-and-get-value-with-arcade/m-p/1109629#M6041</guid>
      <dc:creator>PSGeo</dc:creator>
      <dc:date>2021-10-21T11:08:56Z</dc:date>
    </item>
    <item>
      <title>Re: Split and Get value with arcade</title>
      <link>https://community.esri.com/t5/developers-questions/split-and-get-value-with-arcade/m-p/1109632#M6042</link>
      <description>&lt;P&gt;You can't do it in one expression.&lt;/P&gt;&lt;P&gt;For each of your equipment types, you create an expression that shows or hides the div block in the popup.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;// show_car
var lines = Split($feature.Equip, ",")
for(var i in lines) {
  if(lines[i] == "car") { return "block" }
}
return "none"&lt;/LI-CODE&gt;&lt;LI-CODE lang="javascript"&gt;// show_bike
var lines = Split($feature.Equip, ",")
for(var i in lines) {
  if(lines[i] == "bike") { return "block" }
}
return "none"&lt;/LI-CODE&gt;&lt;LI-CODE lang="javascript"&gt;// show_boat
var lines = Split($feature.Equip, ",")
for(var i in lines) {
  if(lines[i] == "boat") { return "block" }
}
return "none"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;!-- 
display: block; shows the div
display: none; hides the div
in the expressions, you return either "block" or "none", depending on whether  the equipment type is in the field.
--&amp;gt;

&amp;lt;div style="display: {expression/show_car};"&amp;gt;&amp;lt;a href="https://luxe.digital/lifestyle/cars/fastest-cars"&amp;gt;These are the fastest cars&amp;lt;/a&amp;gt;&amp;lt;/div&amp;gt;
&amp;lt;div style="display: {expression/show_bike};"&amp;gt;&amp;lt;a href="https://.../coolest_bikes"&amp;gt;These are the coolest bikes&amp;lt;/a&amp;gt;&amp;lt;/div&amp;gt;
&amp;lt;div style="display: {expression/show_boat};"&amp;gt;&amp;lt;a href="https://..../biggest-ships"&amp;gt;These are the biggest cruise ships&amp;lt;/a&amp;gt;&amp;lt;/div&amp;gt;&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 21 Oct 2021 11:28:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/split-and-get-value-with-arcade/m-p/1109632#M6042</guid>
      <dc:creator>JohannesLindner</dc:creator>
      <dc:date>2021-10-21T11:28:20Z</dc:date>
    </item>
    <item>
      <title>Re: Split and Get value with arcade</title>
      <link>https://community.esri.com/t5/developers-questions/split-and-get-value-with-arcade/m-p/1110166#M6043</link>
      <description>&lt;P&gt;Hi again,&lt;/P&gt;&lt;P&gt;I do not understand why in the final pop-up it appears "car" "bike" and "boat" when in the field is only "bike".&lt;/P&gt;&lt;P&gt;Isn't the "return "none""&amp;nbsp; make them not visible while the those attributes are not in the field whereas bike is the only in?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;cheers&lt;/P&gt;&lt;P&gt;Pedro&lt;/P&gt;</description>
      <pubDate>Fri, 22 Oct 2021 11:01:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/split-and-get-value-with-arcade/m-p/1110166#M6043</guid>
      <dc:creator>PSGeo</dc:creator>
      <dc:date>2021-10-22T11:01:06Z</dc:date>
    </item>
    <item>
      <title>Re: Split and Get value with arcade</title>
      <link>https://community.esri.com/t5/developers-questions/split-and-get-value-with-arcade/m-p/1110170#M6044</link>
      <description>&lt;P&gt;The final code is the popup's html.&lt;/P&gt;&lt;P&gt;For each of your equipment types, you need one of these:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;div style="display: {expression/show_bike};"&amp;gt;Content&amp;lt;/div&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;If you have "bike" in your equipment field, this will evaluate to&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;div style="display: block;"&amp;gt;Content&amp;lt;/div&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;In HTML, "display: block" means that the element (the div in this case) will be shown on screen.&lt;/P&gt;&lt;P&gt;If "bike" is not in your equipment field, the HTML will evaluate to&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;div style="display: none;"&amp;gt;Content&amp;lt;/div&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;which will hide the element.&lt;/P&gt;&lt;P&gt;So if you only have "bike" in the field, the div elements for "car" and "boat" should be hidden.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If that is not the case, you probably need to check the expression names. Could be that your expressions aren't named "expression/show_car", but "expression/expr0" or "expression/expression0" or similar.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Oct 2021 11:13:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/split-and-get-value-with-arcade/m-p/1110170#M6044</guid>
      <dc:creator>JohannesLindner</dc:creator>
      <dc:date>2021-10-22T11:13:43Z</dc:date>
    </item>
    <item>
      <title>Re: Split and Get value with arcade</title>
      <link>https://community.esri.com/t5/developers-questions/split-and-get-value-with-arcade/m-p/1110214#M6045</link>
      <description>&lt;P&gt;Ok, well. it seems that the name of my expression is wrong:&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;"expression/expr0". I tried to rename, but it doesn't rename... So I will use the default esri naming. I tested and it worked.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Fantastic job. Please apply to SatCen and join my team. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;cheers&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Pedro&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Oct 2021 13:36:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/split-and-get-value-with-arcade/m-p/1110214#M6045</guid>
      <dc:creator>PSGeo</dc:creator>
      <dc:date>2021-10-22T13:36:34Z</dc:date>
    </item>
    <item>
      <title>Re: Split and Get value with arcade</title>
      <link>https://community.esri.com/t5/developers-questions/split-and-get-value-with-arcade/m-p/1116337#M6066</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;@&lt;A href="https://community.esri.com/t5/user/viewprofilepage/user-id/294341" target="_self"&gt;&lt;SPAN class=""&gt;JohannesLindner, last&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;3 weeks ago you answer my question about the hyperlinks. one per vehicle (car, bicycle, etc)... more than one if there is more than one vehicle listed in the field.&lt;BR /&gt;the popup shows the naming correctly for one vehicle, for two vehicles, etc. However the hyperlink doesn't work properly when more than one vehicle is listed. It simply makes a single hyperlink of both words some thing like this:&lt;/P&gt;&lt;P&gt;&lt;A title="Car, bicycle" href="https://www.google.com/url?sa=i&amp;amp;url=http%3A%2F%2Fwww.feitoemportugal.com%2Fumm-jeep.html&amp;amp;psig=AOvVaw0p9ya9gM4BAabmzvnySi9v&amp;amp;ust=1636817755089000&amp;amp;source=images&amp;amp;cd=vfe&amp;amp;ved=0CAgQjRxqFwoTCMjm3bqTk_QCFQAAAAAdAAAAABAD" target="_self"&gt;Car, bicycle&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tested the link for both Car and Bicycle isolated and it works fine.&lt;/P&gt;&lt;P&gt;What could be the mistake?&lt;/P&gt;&lt;P&gt;if you want I can share the code but it is exactly what you suggested than.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;cheers&lt;/P&gt;&lt;P&gt;Pedro&lt;/P&gt;</description>
      <pubDate>Fri, 12 Nov 2021 15:40:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/split-and-get-value-with-arcade/m-p/1116337#M6066</guid>
      <dc:creator>PSGeo1</dc:creator>
      <dc:date>2021-11-12T15:40:17Z</dc:date>
    </item>
  </channel>
</rss>

