<?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: labeling in Arcade in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/labeling-in-arcade/m-p/1325340#M72750</link>
    <description>&lt;P&gt;tl;dr:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;return When(
    Adresstatus == "Gehistoreerd", null,
    IsEmpty(Busnummer), Huisnummer,
    !IsEmpty(Busnummer), `&amp;lt;UND&amp;gt;${Huisnummer}&amp;lt;/UND&amp;gt;`,
    "Default value"
    )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A few pointers:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;return + something&lt;/STRONG&gt; is not valid syntax. &lt;STRONG&gt;return something&lt;/STRONG&gt; is. &lt;A href="https://developers.arcgis.com/arcade/guide/return/" target="_blank" rel="noopener"&gt;More info on return&lt;/A&gt;.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;=&lt;/STRONG&gt; is for assignment (this variable now has this value), &lt;STRONG&gt;==&lt;/STRONG&gt; is for comparison (does this variable have this value?) &lt;A href="https://developers.arcgis.com/arcade/guide/operators/" target="_blank" rel="noopener"&gt;More info on operators&lt;/A&gt;.&lt;/LI&gt;&lt;LI&gt;You can append multiple string values (what you tried with the &amp;lt;u&amp;gt;), but you have to actually make them strings using quotation marks, and you have to either add them (&lt;STRONG&gt;"&amp;lt;UND&amp;gt;" + Huisnummer + "&amp;lt;/UND&amp;gt;"&lt;/STRONG&gt;) or use &lt;A href="https://developers.arcgis.com/arcade/guide/template-literals/" target="_blank" rel="noopener"&gt;template literals&lt;/A&gt;, which I did above.&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/mapping/text/text-formatting-tags.htm" target="_blank" rel="noopener"&gt;Label formatting tags&lt;/A&gt; are not the same as HTML tags.&lt;/LI&gt;&lt;LI&gt;For chained if-then blocks, you can use the &lt;A href="https://developers.arcgis.com/arcade/function-reference/logical_functions/#when" target="_blank" rel="noopener"&gt;When&lt;/A&gt; function.&lt;/LI&gt;&lt;/UL&gt;</description>
    <pubDate>Tue, 05 Sep 2023 09:56:11 GMT</pubDate>
    <dc:creator>JohannesLindner</dc:creator>
    <dc:date>2023-09-05T09:56:11Z</dc:date>
    <item>
      <title>labeling in Arcade</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/labeling-in-arcade/m-p/1325181#M72730</link>
      <description>&lt;P&gt;I want to label my feature as follows:&lt;/P&gt;&lt;P&gt;when ADRESSTATUS = Gehistoreeerd -&amp;gt; No label&lt;BR /&gt;when BUSNUMMER = Null --&amp;gt; Huinummer&lt;BR /&gt;When BUSNUMMER is not NULL --&amp;gt; Huisnumer underlined&lt;BR /&gt;&lt;BR /&gt;I keep getting an 'invalid expression'&amp;nbsp;&lt;BR /&gt;Can anyone see what's wrong here? Is there a beter way tot do this?&lt;/P&gt;</description>
      <pubDate>Mon, 04 Sep 2023 09:11:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/labeling-in-arcade/m-p/1325181#M72730</guid>
      <dc:creator>IngridAnneessens</dc:creator>
      <dc:date>2023-09-04T09:11:48Z</dc:date>
    </item>
    <item>
      <title>Re: labeling in Arcade</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/labeling-in-arcade/m-p/1325198#M72737</link>
      <description>&lt;P&gt;You are missing a ')' at the end of line 5.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Sep 2023 12:16:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/labeling-in-arcade/m-p/1325198#M72737</guid>
      <dc:creator>ChristopherCounsell</dc:creator>
      <dc:date>2023-09-04T12:16:52Z</dc:date>
    </item>
    <item>
      <title>Re: labeling in Arcade</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/labeling-in-arcade/m-p/1325202#M72738</link>
      <description>&lt;P&gt;I don't see where I have to put it:&lt;BR /&gt;&lt;SPAN&gt;if (!IsEmpty(Busnummer)) {return + Huisnummer};&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Sep 2023 12:30:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/labeling-in-arcade/m-p/1325202#M72738</guid>
      <dc:creator>IngridAnneessens</dc:creator>
      <dc:date>2023-09-04T12:30:49Z</dc:date>
    </item>
    <item>
      <title>Re: labeling in Arcade</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/labeling-in-arcade/m-p/1325340#M72750</link>
      <description>&lt;P&gt;tl;dr:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;return When(
    Adresstatus == "Gehistoreerd", null,
    IsEmpty(Busnummer), Huisnummer,
    !IsEmpty(Busnummer), `&amp;lt;UND&amp;gt;${Huisnummer}&amp;lt;/UND&amp;gt;`,
    "Default value"
    )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A few pointers:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;return + something&lt;/STRONG&gt; is not valid syntax. &lt;STRONG&gt;return something&lt;/STRONG&gt; is. &lt;A href="https://developers.arcgis.com/arcade/guide/return/" target="_blank" rel="noopener"&gt;More info on return&lt;/A&gt;.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;=&lt;/STRONG&gt; is for assignment (this variable now has this value), &lt;STRONG&gt;==&lt;/STRONG&gt; is for comparison (does this variable have this value?) &lt;A href="https://developers.arcgis.com/arcade/guide/operators/" target="_blank" rel="noopener"&gt;More info on operators&lt;/A&gt;.&lt;/LI&gt;&lt;LI&gt;You can append multiple string values (what you tried with the &amp;lt;u&amp;gt;), but you have to actually make them strings using quotation marks, and you have to either add them (&lt;STRONG&gt;"&amp;lt;UND&amp;gt;" + Huisnummer + "&amp;lt;/UND&amp;gt;"&lt;/STRONG&gt;) or use &lt;A href="https://developers.arcgis.com/arcade/guide/template-literals/" target="_blank" rel="noopener"&gt;template literals&lt;/A&gt;, which I did above.&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/mapping/text/text-formatting-tags.htm" target="_blank" rel="noopener"&gt;Label formatting tags&lt;/A&gt; are not the same as HTML tags.&lt;/LI&gt;&lt;LI&gt;For chained if-then blocks, you can use the &lt;A href="https://developers.arcgis.com/arcade/function-reference/logical_functions/#when" target="_blank" rel="noopener"&gt;When&lt;/A&gt; function.&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Tue, 05 Sep 2023 09:56:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/labeling-in-arcade/m-p/1325340#M72750</guid>
      <dc:creator>JohannesLindner</dc:creator>
      <dc:date>2023-09-05T09:56:11Z</dc:date>
    </item>
    <item>
      <title>Re: labeling in Arcade</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/labeling-in-arcade/m-p/1325352#M72751</link>
      <description>&lt;P&gt;Thank you, Johannes!&lt;/P&gt;</description>
      <pubDate>Tue, 05 Sep 2023 11:07:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/labeling-in-arcade/m-p/1325352#M72751</guid>
      <dc:creator>IngridAnneessens</dc:creator>
      <dc:date>2023-09-05T11:07:13Z</dc:date>
    </item>
  </channel>
</rss>

