<?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 Converting VBScript to Arcade in Developers Questions</title>
    <link>https://community.esri.com/t5/developers-questions/converting-vbscript-to-arcade/m-p/1146583#M6183</link>
    <description>&lt;P&gt;So I have this VBScript in labeling that I'm trying to convert to Arcade, and it's the "(" and the ")" that I'm having issues in writing into the Arcade expression.&lt;/P&gt;&lt;P&gt;VBScribt expression: [GL_STR_FUL] &amp;amp; VBNEWLINE &amp;amp; "( " &amp;amp; [ALIAS_NAM] &amp;amp; " )"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also.... is there an easy way to convert all VBScript into Arcade instead of going one my own in the expressions or a useful link to writing Arcade expressions since I'm pretty new at writing script in general....?&lt;/P&gt;&lt;P&gt;Thank you for your help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 22 Feb 2022 17:23:29 GMT</pubDate>
    <dc:creator>DanaYoung</dc:creator>
    <dc:date>2022-02-22T17:23:29Z</dc:date>
    <item>
      <title>Converting VBScript to Arcade</title>
      <link>https://community.esri.com/t5/developers-questions/converting-vbscript-to-arcade/m-p/1146583#M6183</link>
      <description>&lt;P&gt;So I have this VBScript in labeling that I'm trying to convert to Arcade, and it's the "(" and the ")" that I'm having issues in writing into the Arcade expression.&lt;/P&gt;&lt;P&gt;VBScribt expression: [GL_STR_FUL] &amp;amp; VBNEWLINE &amp;amp; "( " &amp;amp; [ALIAS_NAM] &amp;amp; " )"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also.... is there an easy way to convert all VBScript into Arcade instead of going one my own in the expressions or a useful link to writing Arcade expressions since I'm pretty new at writing script in general....?&lt;/P&gt;&lt;P&gt;Thank you for your help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Feb 2022 17:23:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/converting-vbscript-to-arcade/m-p/1146583#M6183</guid>
      <dc:creator>DanaYoung</dc:creator>
      <dc:date>2022-02-22T17:23:29Z</dc:date>
    </item>
    <item>
      <title>Re: Converting VBScript to Arcade</title>
      <link>https://community.esri.com/t5/developers-questions/converting-vbscript-to-arcade/m-p/1146593#M6184</link>
      <description>&lt;P&gt;I don't know that you'll find a reliable "conversion" tool, but Arcade's pretty simple.&lt;/P&gt;&lt;P&gt;To access feature attributes in Arcade, use the notation &lt;STRONG&gt;$feature.attribute &lt;/STRONG&gt;or &lt;STRONG&gt;$feature['attribute']&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;Concatenating text can be done with a "+" instead of "&amp;amp;". Or you can use a backtick string to pipe things into the text.&lt;/P&gt;&lt;P&gt;Basic concatenation:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;$feature['GL_STR_FUL'] + TextFormatting.NewLine + '(' + $feature['ALIAS_NAM'] + ')&lt;/LI-CODE&gt;&lt;P&gt;Backtick string:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;`${$feature['GL_STR_FUL']}
(${feature['ALIAS_NAM']})`&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 22 Feb 2022 17:53:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/converting-vbscript-to-arcade/m-p/1146593#M6184</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2022-02-22T17:53:41Z</dc:date>
    </item>
    <item>
      <title>Re: Converting VBScript to Arcade</title>
      <link>https://community.esri.com/t5/developers-questions/converting-vbscript-to-arcade/m-p/1146596#M6185</link>
      <description>&lt;P&gt;PS - &lt;A href="https://github.com/Esri/arcade-expressions" target="_blank"&gt;https://github.com/Esri/arcade-expressions&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You can find all kinds of Arcade expressions there, along with helpful explanations.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Feb 2022 17:54:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/converting-vbscript-to-arcade/m-p/1146596#M6185</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2022-02-22T17:54:22Z</dc:date>
    </item>
    <item>
      <title>Re: Converting VBScript to Arcade</title>
      <link>https://community.esri.com/t5/developers-questions/converting-vbscript-to-arcade/m-p/1146624#M6186</link>
      <description>&lt;P&gt;Thank you so much! This is very helpful and that's what I was missing the &amp;amp; to the +... no wonder it didn't work right.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Feb 2022 18:59:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/converting-vbscript-to-arcade/m-p/1146624#M6186</guid>
      <dc:creator>DanaYoung</dc:creator>
      <dc:date>2022-02-22T18:59:39Z</dc:date>
    </item>
  </channel>
</rss>

