<?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 Label Expression: How to label an attribute if it contains a string? in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/arcade-label-expression-how-to-label-an-attribute/m-p/1037993#M38991</link>
    <description>&lt;P&gt;Check this out&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;var str=Find("ONE",Upper($feature.Attribute))
IIf((str&amp;gt;(-1)),"ONE","")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jayanta_Poddar_0-1616071339833.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/8764i80F32B225D1D0270/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Jayanta_Poddar_0-1616071339833.png" alt="Jayanta_Poddar_0-1616071339833.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 18 Mar 2021 12:42:28 GMT</pubDate>
    <dc:creator>JayantaPoddar</dc:creator>
    <dc:date>2021-03-18T12:42:28Z</dc:date>
    <item>
      <title>Arcade Label Expression: How to label an attribute if it contains a string?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-label-expression-how-to-label-an-attribute/m-p/1037908#M38983</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;I want to create a label expression which identifies if a string attribute contains a portion of text. If it does, return the value of that text.&lt;/P&gt;&lt;P&gt;e.g. In my head the logic must be something like...&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier"&gt;If $feature.attribute Contains "text"&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier"&gt;Return "text"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;I'm sure its an easy answer, but I'm struggling to figure it out. Any help appreciated!&lt;/P&gt;</description>
      <pubDate>Thu, 18 Mar 2021 04:28:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-label-expression-how-to-label-an-attribute/m-p/1037908#M38983</guid>
      <dc:creator>JustinOdell</dc:creator>
      <dc:date>2021-03-18T04:28:19Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Label Expression: How to label an attribute if it contains a string?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-label-expression-how-to-label-an-attribute/m-p/1037930#M38985</link>
      <description>&lt;P&gt;Could you give an example of the input values and its expected output?&lt;/P&gt;</description>
      <pubDate>Thu, 18 Mar 2021 07:48:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-label-expression-how-to-label-an-attribute/m-p/1037930#M38985</guid>
      <dc:creator>JayantaPoddar</dc:creator>
      <dc:date>2021-03-18T07:48:24Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Label Expression: How to label an attribute if it contains a string?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-label-expression-how-to-label-an-attribute/m-p/1037938#M38986</link>
      <description>&lt;P&gt;Sure,&amp;nbsp;&lt;/P&gt;&lt;P&gt;The attribute in question contains strings. Sometimes the strings are single words, other times they are separated by a comma.&lt;/P&gt;&lt;P&gt;For example, attribute is "Number". Some features in the feature class will have the values in text such as "one" or "two" etc. And some values will be concatenated such that they read "one, two" or "three, four" etc.&lt;/P&gt;&lt;P&gt;I want to create a label expression so that any record containing a value of "one" is labelled as "one". If I have a string value of "one, two", then I simply want the label to return "one" as well.&lt;/P&gt;&lt;P&gt;Hopefully that makes sense.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Mar 2021 09:14:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-label-expression-how-to-label-an-attribute/m-p/1037938#M38986</guid>
      <dc:creator>JustinOdell</dc:creator>
      <dc:date>2021-03-18T09:14:51Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Label Expression: How to label an attribute if it contains a string?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-label-expression-how-to-label-an-attribute/m-p/1037993#M38991</link>
      <description>&lt;P&gt;Check this out&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;var str=Find("ONE",Upper($feature.Attribute))
IIf((str&amp;gt;(-1)),"ONE","")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jayanta_Poddar_0-1616071339833.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/8764i80F32B225D1D0270/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Jayanta_Poddar_0-1616071339833.png" alt="Jayanta_Poddar_0-1616071339833.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Mar 2021 12:42:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-label-expression-how-to-label-an-attribute/m-p/1037993#M38991</guid>
      <dc:creator>JayantaPoddar</dc:creator>
      <dc:date>2021-03-18T12:42:28Z</dc:date>
    </item>
  </channel>
</rss>

