<?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 Help converting VB Script ot Arcade in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/help-converting-vb-script-ot-arcade/m-p/1155004#M52955</link>
    <description>&lt;P&gt;I need help converting a VB Script label expression to Arcade&lt;/P&gt;&lt;P&gt;Function FindLabel ( [RoadName] , [RoadNumber] )&lt;BR /&gt;if [RoadName] = "" then&lt;BR /&gt;FindLabel = [RoadNumber]&lt;BR /&gt;else FindLabel = [RoadName]&lt;BR /&gt;end if&lt;BR /&gt;End Function&lt;/P&gt;</description>
    <pubDate>Thu, 17 Mar 2022 20:22:23 GMT</pubDate>
    <dc:creator>AaronScott2</dc:creator>
    <dc:date>2022-03-17T20:22:23Z</dc:date>
    <item>
      <title>Help converting VB Script ot Arcade</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/help-converting-vb-script-ot-arcade/m-p/1155004#M52955</link>
      <description>&lt;P&gt;I need help converting a VB Script label expression to Arcade&lt;/P&gt;&lt;P&gt;Function FindLabel ( [RoadName] , [RoadNumber] )&lt;BR /&gt;if [RoadName] = "" then&lt;BR /&gt;FindLabel = [RoadNumber]&lt;BR /&gt;else FindLabel = [RoadName]&lt;BR /&gt;end if&lt;BR /&gt;End Function&lt;/P&gt;</description>
      <pubDate>Thu, 17 Mar 2022 20:22:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/help-converting-vb-script-ot-arcade/m-p/1155004#M52955</guid>
      <dc:creator>AaronScott2</dc:creator>
      <dc:date>2022-03-17T20:22:23Z</dc:date>
    </item>
    <item>
      <title>Re: Help converting VB Script ot Arcade</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/help-converting-vb-script-ot-arcade/m-p/1155013#M52956</link>
      <description>&lt;P&gt;The&lt;A href="https://developers.arcgis.com/arcade/playground/" target="_self"&gt; Arcade Playground&lt;/A&gt; is a great place to try things out. What you're doing here is similar to the Arcade function &lt;STRONG&gt;DefaultValue&lt;/STRONG&gt;, in which a field is returned, but does something else if that field is null. In this case, you'd like the road number returned in that instance. This should do it:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;return DefaultValue($feature['RoadName'], $feature['RoadNumber'])&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Mar 2022 20:29:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/help-converting-vb-script-ot-arcade/m-p/1155013#M52956</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2022-03-17T20:29:30Z</dc:date>
    </item>
  </channel>
</rss>

