<?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 Simple way to reproduce the behavior of '&amp;' in a VBScript label expression, using Arcade label expression instead? in Developers Questions</title>
    <link>https://community.esri.com/t5/developers-questions/simple-way-to-reproduce-the-behavior-of-in-a/m-p/17412#M118</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My question is at the end of the post, but first I will give an example of the behavior I'm trying to replicate... When writing a label expression in VBScript, I sometimes take advantage of the difference between '+' and '&amp;amp;' when concatenating attributes and text. For example, lets say I'm labeling sewer pipes. I could write the following expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;[LENGTH]&amp;nbsp;&amp;amp;&amp;nbsp;&lt;SPAN style="color: #ff0000;"&gt;" ft. "&lt;/SPAN&gt;&amp;nbsp;&amp;amp; [DIAMETER]&amp;nbsp;&amp;amp;&amp;nbsp;&lt;SPAN style="color: #ff0000;"&gt;"-inch "&lt;/SPAN&gt;&amp;nbsp;&amp;amp; [MATERIAL]&amp;nbsp;&amp;amp;&amp;nbsp;&lt;SPAN style="color: #ff0000;"&gt;"&amp;nbsp;@ "&lt;/SPAN&gt;&amp;nbsp;&amp;amp; [SLOPE]&amp;nbsp;&amp;amp;&amp;nbsp;&lt;SPAN style="color: #ff0000;"&gt;"%"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'courier new', courier, monospace;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: arial, helvetica, sans-serif;"&gt;And assuming the attributes are fully populated, the label&amp;nbsp;might look like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: arial, helvetica, sans-serif;"&gt;&lt;STRONG&gt;50 ft. 12-inch PVC @ 2.5%&amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="; color: #3d3d3d; font-weight: 400; font-family: arial, helvetica, sans-serif;"&gt;But&amp;nbsp;sometimes we don't have all the information. If an attribute is missing (let's say the slope), the bits of text supporting it, "@" and "%", would still be hanging there:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="; color: #3d3d3d; font-weight: 400; font-family: arial, helvetica, sans-serif;"&gt;&lt;STRONG&gt;50 ft. 12-inch PVC @ %&lt;/STRONG&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="; color: #3d3d3d; font-weight: 400; font-family: arial, helvetica, sans-serif;"&gt;We likely don't want that to happen.&amp;nbsp;By&amp;nbsp;tying two or more elements together with '+' instead of '&amp;amp;', any&amp;nbsp;element tied to a null value will be ignored. Consider the following modified example:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="; color: #3d3d3d; font-weight: 400; font-family: 'courier new', courier, monospace;"&gt;[LENGTH]&amp;nbsp;+&amp;nbsp;&lt;SPAN style="color: #ff0000;"&gt;" ft. "&lt;/SPAN&gt;&amp;nbsp;&amp;amp;&amp;nbsp;[DIAMETER]&amp;nbsp;+&amp;nbsp;&lt;SPAN style="color: #ff0000;"&gt;"-inch "&lt;/SPAN&gt;&amp;nbsp;&amp;amp;&amp;nbsp;[MATERIAL]&amp;nbsp;&amp;amp;&amp;nbsp;&lt;SPAN style="color: #ff0000;"&gt;"&amp;nbsp;@ "&lt;/SPAN&gt;&amp;nbsp;+&amp;nbsp;[SLOPE]&amp;nbsp;+&amp;nbsp;&lt;SPAN style="color: #ff0000;"&gt;"%"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="; color: #3d3d3d; font-weight: 400; font-family: arial, helvetica, sans-serif;"&gt;Now if the slope attribute was null, the "@" and "%" would be left out like this:&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="; color: #3d3d3d; font-weight: 400; font-family: arial, helvetica, sans-serif;"&gt;&lt;STRONG&gt;&lt;STRONG&gt;50 ft. 12-inch PVC&lt;/STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: 400;"&gt;&lt;SPAN style="; color: #3d3d3d; font-weight: 400; font-family: arial, helvetica, sans-serif;"&gt;If just the length was null:&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-weight: 400;"&gt;&lt;SPAN style="; color: #3d3d3d; font-weight: 400; font-family: arial, helvetica, sans-serif;"&gt;&lt;STRONG&gt;&lt;STRONG&gt;12-inch PVC @ 2.5%&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-weight: 400;"&gt;&lt;/P&gt;&lt;P style="font-weight: 400;"&gt;&lt;SPAN style="; color: #3d3d3d; font-weight: 400; font-family: arial, helvetica, sans-serif;"&gt;If the diameter and material were null:&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-weight: 400;"&gt;&lt;SPAN style="; color: #3d3d3d; font-weight: 400; font-family: arial, helvetica, sans-serif;"&gt;&lt;STRONG&gt;&lt;STRONG&gt;50 ft. @ 2.5%&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="; color: #3d3d3d; font-weight: 400; font-family: arial, helvetica, sans-serif;"&gt;You see we have a fairly flexible expression. Finally, if&amp;nbsp;you were to&amp;nbsp;use only '+' operators, and no '&amp;amp;'...&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="; color: #3d3d3d; font-weight: 400; font-family: 'courier new', courier, monospace;"&gt;[LENGTH]&amp;nbsp;+&amp;nbsp;&lt;SPAN style="color: #ff0000;"&gt;" ft. "&lt;/SPAN&gt;&amp;nbsp;+ [DIAMETER]&amp;nbsp;+&amp;nbsp;&lt;SPAN style="color: #ff0000;"&gt;"-inch "&lt;/SPAN&gt;&amp;nbsp;+ [MATERIAL]&amp;nbsp;+ &lt;SPAN style="color: #ff0000;"&gt;"&amp;nbsp;@ "&lt;/SPAN&gt;&amp;nbsp;+&amp;nbsp;[SLOPE]&amp;nbsp;+&amp;nbsp;&lt;SPAN style="color: #ff0000;"&gt;"%"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="; color: #3d3d3d; font-weight: 400; font-family: arial, helvetica, sans-serif;"&gt;...Then whenever any attribute is missing, the entire label will be left out. The effect can be a useful visual cue. A pipe's label would be missing entirely until every attribute needed for the label had been populated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="; color: #3d3d3d; font-weight: 400; font-family: arial, helvetica, sans-serif;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;H2&gt;&lt;SPAN style="; color: #3d3d3d; font-weight: 400; font-family: arial, helvetica, sans-serif;"&gt;Finally, my question... &lt;/SPAN&gt;&lt;/H2&gt;&lt;P&gt;&lt;SPAN style="; color: #3d3d3d; font-weight: 400; font-family: arial, helvetica, sans-serif;"&gt;In Arcade label expressions, it seems that '+' behaves the same way '&amp;amp;'&amp;nbsp;does in VBScript.&lt;STRONG&gt; &lt;STRONG&gt;Is there a&amp;nbsp;similar easy way to achieve the behavior I've described of the VBScript '+' using Arcade, without to having check for nulls using IsEmpty?&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="; color: #3d3d3d; font-weight: 400; font-family: arial, helvetica, sans-serif;"&gt;&lt;STRONG&gt;&lt;STRONG&gt;Thanks!!&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 30 May 2020 20:57:56 GMT</pubDate>
    <dc:creator>ColeSutton11</dc:creator>
    <dc:date>2020-05-30T20:57:56Z</dc:date>
    <item>
      <title>Simple way to reproduce the behavior of '&amp;' in a VBScript label expression, using Arcade label expression instead?</title>
      <link>https://community.esri.com/t5/developers-questions/simple-way-to-reproduce-the-behavior-of-in-a/m-p/17412#M118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My question is at the end of the post, but first I will give an example of the behavior I'm trying to replicate... When writing a label expression in VBScript, I sometimes take advantage of the difference between '+' and '&amp;amp;' when concatenating attributes and text. For example, lets say I'm labeling sewer pipes. I could write the following expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;[LENGTH]&amp;nbsp;&amp;amp;&amp;nbsp;&lt;SPAN style="color: #ff0000;"&gt;" ft. "&lt;/SPAN&gt;&amp;nbsp;&amp;amp; [DIAMETER]&amp;nbsp;&amp;amp;&amp;nbsp;&lt;SPAN style="color: #ff0000;"&gt;"-inch "&lt;/SPAN&gt;&amp;nbsp;&amp;amp; [MATERIAL]&amp;nbsp;&amp;amp;&amp;nbsp;&lt;SPAN style="color: #ff0000;"&gt;"&amp;nbsp;@ "&lt;/SPAN&gt;&amp;nbsp;&amp;amp; [SLOPE]&amp;nbsp;&amp;amp;&amp;nbsp;&lt;SPAN style="color: #ff0000;"&gt;"%"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'courier new', courier, monospace;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: arial, helvetica, sans-serif;"&gt;And assuming the attributes are fully populated, the label&amp;nbsp;might look like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: arial, helvetica, sans-serif;"&gt;&lt;STRONG&gt;50 ft. 12-inch PVC @ 2.5%&amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="; color: #3d3d3d; font-weight: 400; font-family: arial, helvetica, sans-serif;"&gt;But&amp;nbsp;sometimes we don't have all the information. If an attribute is missing (let's say the slope), the bits of text supporting it, "@" and "%", would still be hanging there:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="; color: #3d3d3d; font-weight: 400; font-family: arial, helvetica, sans-serif;"&gt;&lt;STRONG&gt;50 ft. 12-inch PVC @ %&lt;/STRONG&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="; color: #3d3d3d; font-weight: 400; font-family: arial, helvetica, sans-serif;"&gt;We likely don't want that to happen.&amp;nbsp;By&amp;nbsp;tying two or more elements together with '+' instead of '&amp;amp;', any&amp;nbsp;element tied to a null value will be ignored. Consider the following modified example:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="; color: #3d3d3d; font-weight: 400; font-family: 'courier new', courier, monospace;"&gt;[LENGTH]&amp;nbsp;+&amp;nbsp;&lt;SPAN style="color: #ff0000;"&gt;" ft. "&lt;/SPAN&gt;&amp;nbsp;&amp;amp;&amp;nbsp;[DIAMETER]&amp;nbsp;+&amp;nbsp;&lt;SPAN style="color: #ff0000;"&gt;"-inch "&lt;/SPAN&gt;&amp;nbsp;&amp;amp;&amp;nbsp;[MATERIAL]&amp;nbsp;&amp;amp;&amp;nbsp;&lt;SPAN style="color: #ff0000;"&gt;"&amp;nbsp;@ "&lt;/SPAN&gt;&amp;nbsp;+&amp;nbsp;[SLOPE]&amp;nbsp;+&amp;nbsp;&lt;SPAN style="color: #ff0000;"&gt;"%"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="; color: #3d3d3d; font-weight: 400; font-family: arial, helvetica, sans-serif;"&gt;Now if the slope attribute was null, the "@" and "%" would be left out like this:&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="; color: #3d3d3d; font-weight: 400; font-family: arial, helvetica, sans-serif;"&gt;&lt;STRONG&gt;&lt;STRONG&gt;50 ft. 12-inch PVC&lt;/STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: 400;"&gt;&lt;SPAN style="; color: #3d3d3d; font-weight: 400; font-family: arial, helvetica, sans-serif;"&gt;If just the length was null:&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-weight: 400;"&gt;&lt;SPAN style="; color: #3d3d3d; font-weight: 400; font-family: arial, helvetica, sans-serif;"&gt;&lt;STRONG&gt;&lt;STRONG&gt;12-inch PVC @ 2.5%&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-weight: 400;"&gt;&lt;/P&gt;&lt;P style="font-weight: 400;"&gt;&lt;SPAN style="; color: #3d3d3d; font-weight: 400; font-family: arial, helvetica, sans-serif;"&gt;If the diameter and material were null:&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-weight: 400;"&gt;&lt;SPAN style="; color: #3d3d3d; font-weight: 400; font-family: arial, helvetica, sans-serif;"&gt;&lt;STRONG&gt;&lt;STRONG&gt;50 ft. @ 2.5%&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="; color: #3d3d3d; font-weight: 400; font-family: arial, helvetica, sans-serif;"&gt;You see we have a fairly flexible expression. Finally, if&amp;nbsp;you were to&amp;nbsp;use only '+' operators, and no '&amp;amp;'...&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="; color: #3d3d3d; font-weight: 400; font-family: 'courier new', courier, monospace;"&gt;[LENGTH]&amp;nbsp;+&amp;nbsp;&lt;SPAN style="color: #ff0000;"&gt;" ft. "&lt;/SPAN&gt;&amp;nbsp;+ [DIAMETER]&amp;nbsp;+&amp;nbsp;&lt;SPAN style="color: #ff0000;"&gt;"-inch "&lt;/SPAN&gt;&amp;nbsp;+ [MATERIAL]&amp;nbsp;+ &lt;SPAN style="color: #ff0000;"&gt;"&amp;nbsp;@ "&lt;/SPAN&gt;&amp;nbsp;+&amp;nbsp;[SLOPE]&amp;nbsp;+&amp;nbsp;&lt;SPAN style="color: #ff0000;"&gt;"%"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="; color: #3d3d3d; font-weight: 400; font-family: arial, helvetica, sans-serif;"&gt;...Then whenever any attribute is missing, the entire label will be left out. The effect can be a useful visual cue. A pipe's label would be missing entirely until every attribute needed for the label had been populated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="; color: #3d3d3d; font-weight: 400; font-family: arial, helvetica, sans-serif;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;H2&gt;&lt;SPAN style="; color: #3d3d3d; font-weight: 400; font-family: arial, helvetica, sans-serif;"&gt;Finally, my question... &lt;/SPAN&gt;&lt;/H2&gt;&lt;P&gt;&lt;SPAN style="; color: #3d3d3d; font-weight: 400; font-family: arial, helvetica, sans-serif;"&gt;In Arcade label expressions, it seems that '+' behaves the same way '&amp;amp;'&amp;nbsp;does in VBScript.&lt;STRONG&gt; &lt;STRONG&gt;Is there a&amp;nbsp;similar easy way to achieve the behavior I've described of the VBScript '+' using Arcade, without to having check for nulls using IsEmpty?&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="; color: #3d3d3d; font-weight: 400; font-family: arial, helvetica, sans-serif;"&gt;&lt;STRONG&gt;&lt;STRONG&gt;Thanks!!&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 30 May 2020 20:57:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/simple-way-to-reproduce-the-behavior-of-in-a/m-p/17412#M118</guid>
      <dc:creator>ColeSutton11</dc:creator>
      <dc:date>2020-05-30T20:57:56Z</dc:date>
    </item>
    <item>
      <title>Re: Simple way to reproduce the behavior of '&amp;' in a VBScript label expression, using Arcade label expression instead?</title>
      <link>https://community.esri.com/t5/developers-questions/simple-way-to-reproduce-the-behavior-of-in-a/m-p/17413#M119</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think I've done it ok in python, I'm sure there's a better way though. I'm not sure how the locals() will go in arcade as not very familiar with the syntax, is it just 'var' infront of every variable?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;length &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;2.5&lt;/SPAN&gt;
diameter &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;#material =" WOOD"&lt;/SPAN&gt;
slope &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;25&lt;/SPAN&gt;

&lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'length'&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; locals&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
    length &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; str&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;length&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;" ft. "&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;else&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
    length &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;""&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'diameter'&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; locals&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
    diameter &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; str&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;diameter&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"-inch"&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;else&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
    diameter &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;""&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;not&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'material'&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; locals&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
    material &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;""&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'slope'&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; locals&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
    slope &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;" @"&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; str&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;slope&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"%"&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;else&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
    slope &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;""&lt;/SPAN&gt;

&lt;SPAN class="keyword token"&gt;return&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;length &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; diameter &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; material &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; slope&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 20:42:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/simple-way-to-reproduce-the-behavior-of-in-a/m-p/17413#M119</guid>
      <dc:creator>DavidPike</dc:creator>
      <dc:date>2021-12-10T20:42:14Z</dc:date>
    </item>
    <item>
      <title>Re: Simple way to reproduce the behavior of '&amp;' in a VBScript label expression, using Arcade label expression instead?</title>
      <link>https://community.esri.com/t5/developers-questions/simple-way-to-reproduce-the-behavior-of-in-a/m-p/17414#M120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;actually&amp;nbsp;&lt;/P&gt;&lt;P&gt;length = "LENGTH! etc. so can just be if length: instead of if 'length' in locals(): same for the rest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 31 May 2020 09:32:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/simple-way-to-reproduce-the-behavior-of-in-a/m-p/17414#M120</guid>
      <dc:creator>DavidPike</dc:creator>
      <dc:date>2020-05-31T09:32:41Z</dc:date>
    </item>
    <item>
      <title>Re: Simple way to reproduce the behavior of '&amp;' in a VBScript label expression, using Arcade label expression instead?</title>
      <link>https://community.esri.com/t5/developers-questions/simple-way-to-reproduce-the-behavior-of-in-a/m-p/17415#M121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;VBScript's time has come and gone, assuming it ever came in the first place, but I loathe Arcade.&amp;nbsp; Even if you don't take issue with Esri creating a new, proprietary language, which I do take issue with, usability wasn't a design priority if JavaScript was the inspiration for syntax and structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The short answer to your question, no, there is no equivalent behavior in Arcade for what you are doing in VBScript.&amp;nbsp; That said, what you are doing with VBScript isn't even a feature of VBScript, it is an Esri VBScript implementation behavior that won't transfer to other applications.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Something along the lines of below should work for you and not be too convoluted in terms of structure:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; flds &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;$feature&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;LENGTH&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; $feature&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;DIAMETER&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; $feature&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;MATERIAL&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; $feature&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;SLOPE&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; pref &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;""&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;" "&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;" "&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;" @ "&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; suff &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;" ft."&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"-inch"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;""&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"%"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;

&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; lbl &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;""&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; k&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt; k&lt;SPAN class="operator token"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;Count&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;flds&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt; k&lt;SPAN class="operator token"&gt;++&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
    &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;IsEmpty&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;flds&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;k&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;continue&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
    lbl &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; lbl &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; pref&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;k&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; flds&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;k&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; suff&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;k&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;return&lt;/SPAN&gt; lbl&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 20:42:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/simple-way-to-reproduce-the-behavior-of-in-a/m-p/17415#M121</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2021-12-10T20:42:17Z</dc:date>
    </item>
    <item>
      <title>Re: Simple way to reproduce the behavior of '&amp;' in a VBScript label expression, using Arcade label expression instead?</title>
      <link>https://community.esri.com/t5/developers-questions/simple-way-to-reproduce-the-behavior-of-in-a/m-p/17416#M122</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;I loathe Arcade.&amp;nbsp; Even if you don't take issue with Esri creating a new, proprietary language, which I do take issue with, usability wasn't a design priority if JavaScript was the inspiration for syntax and structure.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;I could not agree more. "That @#$% circus language"&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 31 May 2020 16:05:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/simple-way-to-reproduce-the-behavior-of-in-a/m-p/17416#M122</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2020-05-31T16:05:19Z</dc:date>
    </item>
    <item>
      <title>Re: Simple way to reproduce the behavior of '&amp;' in a VBScript label expression, using Arcade label expression instead?</title>
      <link>https://community.esri.com/t5/developers-questions/simple-way-to-reproduce-the-behavior-of-in-a/m-p/17417#M123</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No fan of arcade either, but won't &lt;A href="https://developers.arcgis.com/arcade/function-reference/text_functions/"&gt;concatenate&lt;/A&gt;() do the same thing as '&amp;amp;' in vb?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 31 May 2020 20:56:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/simple-way-to-reproduce-the-behavior-of-in-a/m-p/17417#M123</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2020-05-31T20:56:18Z</dc:date>
    </item>
    <item>
      <title>Re: Simple way to reproduce the behavior of '&amp;' in a VBScript label expression, using Arcade label expression instead?</title>
      <link>https://community.esri.com/t5/developers-questions/simple-way-to-reproduce-the-behavior-of-in-a/m-p/17418#M124</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the example, the best part of GeoNet.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Jun 2020 01:23:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/simple-way-to-reproduce-the-behavior-of-in-a/m-p/17418#M124</guid>
      <dc:creator>MichaelVolz</dc:creator>
      <dc:date>2020-06-01T01:23:30Z</dc:date>
    </item>
    <item>
      <title>Re: Simple way to reproduce the behavior of '&amp;' in a VBScript label expression, using Arcade label expression instead?</title>
      <link>https://community.esri.com/t5/developers-questions/simple-way-to-reproduce-the-behavior-of-in-a/m-p/17419#M125</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply and example Joshua! I knew (I think mainly from pro training vids) that VBScript is out and Arcade is in,&amp;nbsp;but I'm too naive to feel ways about it, haha. Since you mention it, I guess it does kinda suck that they went and created a something proprietary.&amp;nbsp;Now I'm&amp;nbsp;wondering how worthwhile it&amp;nbsp;is to work on updating my label expressions in Arcade in the first place. Perhaps&amp;nbsp;I should try to use Python more instead.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Jun 2020 15:17:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/simple-way-to-reproduce-the-behavior-of-in-a/m-p/17419#M125</guid>
      <dc:creator>ColeSutton11</dc:creator>
      <dc:date>2020-06-01T15:17:21Z</dc:date>
    </item>
    <item>
      <title>Re: Simple way to reproduce the behavior of '&amp;' in a VBScript label expression, using Arcade label expression instead?</title>
      <link>https://community.esri.com/t5/developers-questions/simple-way-to-reproduce-the-behavior-of-in-a/m-p/17420#M126</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Forgive me Joe.&amp;nbsp;The title of my post&amp;nbsp;suggests I'm looking to do what '&amp;amp;' does in vb, but my question is actually asking about replicating the '+' behavior from vb, &lt;EM&gt;in contrast&lt;/EM&gt; to '&amp;amp;'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Jun 2020 15:20:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/simple-way-to-reproduce-the-behavior-of-in-a/m-p/17420#M126</guid>
      <dc:creator>ColeSutton11</dc:creator>
      <dc:date>2020-06-01T15:20:45Z</dc:date>
    </item>
  </channel>
</rss>

