<?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 VBScript Labels- Multiple field values in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/vbscript-labels-multiple-field-values/m-p/295222#M16916</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am currently working on a label in which I am grabbing the data from one field (Element Name), then using data from an equipment field related to phasing. I want to return the data in A phase (Device Equipment A), unless empty, then B unless empty, then C. My vb skills are extremely rusty and I do not remember how to do this for more than two possible outcomes.&lt;BR /&gt;&lt;BR /&gt;Can someone help me with the structure of this statement in order to get the results I seek? Thanks for any time spent helping.&lt;BR /&gt;&lt;BR /&gt;I just drew a blank after the following:&lt;BR /&gt;&lt;BR /&gt;[ElementName] &amp;amp; vbnewline &amp;amp; (...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 Aug 2017 16:27:22 GMT</pubDate>
    <dc:creator>ChanceWitt</dc:creator>
    <dc:date>2017-08-28T16:27:22Z</dc:date>
    <item>
      <title>VBScript Labels- Multiple field values</title>
      <link>https://community.esri.com/t5/data-management-questions/vbscript-labels-multiple-field-values/m-p/295222#M16916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am currently working on a label in which I am grabbing the data from one field (Element Name), then using data from an equipment field related to phasing. I want to return the data in A phase (Device Equipment A), unless empty, then B unless empty, then C. My vb skills are extremely rusty and I do not remember how to do this for more than two possible outcomes.&lt;BR /&gt;&lt;BR /&gt;Can someone help me with the structure of this statement in order to get the results I seek? Thanks for any time spent helping.&lt;BR /&gt;&lt;BR /&gt;I just drew a blank after the following:&lt;BR /&gt;&lt;BR /&gt;[ElementName] &amp;amp; vbnewline &amp;amp; (...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Aug 2017 16:27:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/vbscript-labels-multiple-field-values/m-p/295222#M16916</guid>
      <dc:creator>ChanceWitt</dc:creator>
      <dc:date>2017-08-28T16:27:22Z</dc:date>
    </item>
    <item>
      <title>Re: VBScript Labels- Multiple field values</title>
      <link>https://community.esri.com/t5/data-management-questions/vbscript-labels-multiple-field-values/m-p/295223#M16917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It would be something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;Function&amp;nbsp;FindLabel&amp;nbsp;([ElementName], [DEVICEA],&amp;nbsp;[DEVICEB],&amp;nbsp;[DEVICEC]&amp;nbsp;)
&amp;nbsp;&amp;nbsp;If&amp;nbsp;IsNull( [DEVICEA] )&amp;nbsp;then
&amp;nbsp; &amp;nbsp; If IsNull(&amp;nbsp;[DEVICEB] ) then
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Findlabel&amp;nbsp;=&amp;nbsp; [ElementName]&amp;nbsp;&amp;amp; vbnewline &amp;amp; [DEVICEC]
&amp;nbsp;&amp;nbsp;&amp;nbsp; Else
&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;Findlabel&amp;nbsp;=&amp;nbsp; [ElementName]&amp;nbsp;&amp;amp; vbnewline &amp;amp; [DEVICEB]
&amp;nbsp;&amp;nbsp;&amp;nbsp; End if
&amp;nbsp;&amp;nbsp;Else
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;FindLabel&amp;nbsp;= [ElementName]&amp;nbsp;&amp;amp; vbnewline &amp;amp; [DEVICEA]
&amp;nbsp;&amp;nbsp;End&amp;nbsp;if
End&amp;nbsp;Function&amp;nbsp;&amp;nbsp;‍‍‍‍‍‍‍‍‍‍‍&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;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 14:10:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/vbscript-labels-multiple-field-values/m-p/295223#M16917</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2021-12-11T14:10:49Z</dc:date>
    </item>
    <item>
      <title>Re: VBScript Labels- Multiple field values</title>
      <link>https://community.esri.com/t5/data-management-questions/vbscript-labels-multiple-field-values/m-p/295224#M16918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After tweaking the fields to match the data, this returned my labels as I wanted them perfectly. Thank you for the help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Aug 2017 20:32:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/vbscript-labels-multiple-field-values/m-p/295224#M16918</guid>
      <dc:creator>ChanceWitt</dc:creator>
      <dc:date>2017-08-28T20:32:11Z</dc:date>
    </item>
    <item>
      <title>Re: VBScript Labels- Multiple field values</title>
      <link>https://community.esri.com/t5/data-management-questions/vbscript-labels-multiple-field-values/m-p/295225#M16919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Glad to help. Please remember to mark the question as answered.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Aug 2017 20:48:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/vbscript-labels-multiple-field-values/m-p/295225#M16919</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2017-08-28T20:48:19Z</dc:date>
    </item>
  </channel>
</rss>

