<?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 Expression to change font size based on if statment in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/using-arcade-expression-to-change-font-size-based/m-p/485711#M24362</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the link to the documentation. I used that in combination with the above code and was able to use the expression below to get what I needed. Thought I would post this in case anyone else had this kind of issue&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IIf($feature["Pole_Inspection_status"]==0,"&amp;lt;BOL&amp;gt;&amp;lt;FNT size = '12'&amp;gt;" + $feature["GIS_ID_coded"] + "&amp;lt;/FNT&amp;gt;&amp;lt;/BOL&amp;gt;",$feature["GIS_ID_coded"]);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Jul 2019 13:38:19 GMT</pubDate>
    <dc:creator>AriLukas</dc:creator>
    <dc:date>2019-07-22T13:38:19Z</dc:date>
    <item>
      <title>Using Arcade Expression to change font size based on if statment</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/using-arcade-expression-to-change-font-size-based/m-p/485709#M24360</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I will confess that the most arcade I have ever used has been extremely simple. I currently have written a VBScript in ArcMap that will increase the font size and make it bold based on an if statement. I have tried several attempts to replicate this in Arcade, with no success.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Function FindLabel ( [GIS_ID_coded], [Pole_Inspection_status] )&lt;BR /&gt;dim a&lt;/P&gt;&lt;P&gt;a= [GIS_ID_coded]&lt;/P&gt;&lt;P&gt;if [Pole_Inspection_status] = "No" then&lt;/P&gt;&lt;P&gt;a= "&amp;lt;BOL&amp;gt;&amp;lt;FNT size = '12'&amp;gt;" &amp;amp; a &amp;amp; "&amp;lt;/FNT&amp;gt;&amp;lt;/BOL&amp;gt;"&lt;BR /&gt;end if&lt;/P&gt;&lt;P&gt;FindLabel = a&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I haven't waded through all the arcade function references but have not been able to find any documentation on how to change font size and bold option. If anyone could point me in the right direction it would greatly appreciated!&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jul 2019 16:13:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/using-arcade-expression-to-change-font-size-based/m-p/485709#M24360</guid>
      <dc:creator>AriLukas</dc:creator>
      <dc:date>2019-07-18T16:13:39Z</dc:date>
    </item>
    <item>
      <title>Re: Using Arcade Expression to change font size based on if statment</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/using-arcade-expression-to-change-font-size-based/m-p/485710#M24361</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;With Arcade you can do something like this:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/453495_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If (Left($feature.STATE_NAME, 1) == "W")&lt;BR /&gt;{&lt;BR /&gt;return "&amp;lt;CLR red = '255'&amp;gt;" + $feature.STATE_NAME + "&amp;lt;/CLR&amp;gt;";&lt;BR /&gt;}&lt;BR /&gt;else &lt;BR /&gt;{&lt;BR /&gt;return $feature.STATE_NAME&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The formatting is documented here&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/help/mapping/text/text-formatting-tags.htm#ESRI_SECTION1_015D6B880F4B40D0A44A629F8948AA8E"&gt;https://pro.arcgis.com/en/pro-app/help/mapping/text/text-formatting-tags.htm#ESRI_SECTION1_015D6B880F4B40D0A44A629F8948AA8E&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jul 2019 16:47:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/using-arcade-expression-to-change-font-size-based/m-p/485710#M24361</guid>
      <dc:creator>MarkBockenhauer</dc:creator>
      <dc:date>2019-07-18T16:47:06Z</dc:date>
    </item>
    <item>
      <title>Re: Using Arcade Expression to change font size based on if statment</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/using-arcade-expression-to-change-font-size-based/m-p/485711#M24362</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the link to the documentation. I used that in combination with the above code and was able to use the expression below to get what I needed. Thought I would post this in case anyone else had this kind of issue&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IIf($feature["Pole_Inspection_status"]==0,"&amp;lt;BOL&amp;gt;&amp;lt;FNT size = '12'&amp;gt;" + $feature["GIS_ID_coded"] + "&amp;lt;/FNT&amp;gt;&amp;lt;/BOL&amp;gt;",$feature["GIS_ID_coded"]);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jul 2019 13:38:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/using-arcade-expression-to-change-font-size-based/m-p/485711#M24362</guid>
      <dc:creator>AriLukas</dc:creator>
      <dc:date>2019-07-22T13:38:19Z</dc:date>
    </item>
  </channel>
</rss>

