<?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 Return a second field in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/return-a-second-field/m-p/1033360#M38186</link>
    <description>&lt;P&gt;I am trying to build out my label field. I successfully got the function to return a value. I want to go one step further and reference a second field. Is that possible. If the Location ID is valid I want to return the location code.&lt;/P&gt;&lt;P&gt;Office(!Location_IDs!)&lt;BR /&gt;def Office(Location_IDs):&lt;BR /&gt;if (Location_IDs&amp;gt;= -1):&lt;BR /&gt;return ""&lt;BR /&gt;else:&lt;BR /&gt;return LOC_CODE&lt;/P&gt;</description>
    <pubDate>Fri, 05 Mar 2021 14:10:04 GMT</pubDate>
    <dc:creator>GordonBaker</dc:creator>
    <dc:date>2021-03-05T14:10:04Z</dc:date>
    <item>
      <title>Return a second field</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/return-a-second-field/m-p/1033360#M38186</link>
      <description>&lt;P&gt;I am trying to build out my label field. I successfully got the function to return a value. I want to go one step further and reference a second field. Is that possible. If the Location ID is valid I want to return the location code.&lt;/P&gt;&lt;P&gt;Office(!Location_IDs!)&lt;BR /&gt;def Office(Location_IDs):&lt;BR /&gt;if (Location_IDs&amp;gt;= -1):&lt;BR /&gt;return ""&lt;BR /&gt;else:&lt;BR /&gt;return LOC_CODE&lt;/P&gt;</description>
      <pubDate>Fri, 05 Mar 2021 14:10:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/return-a-second-field/m-p/1033360#M38186</guid>
      <dc:creator>GordonBaker</dc:creator>
      <dc:date>2021-03-05T14:10:04Z</dc:date>
    </item>
    <item>
      <title>Re: Return a second field</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/return-a-second-field/m-p/1033382#M38187</link>
      <description>&lt;P&gt;You can add as many parameters as you like to your function:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;Office(!Location_IDs!, !LOC_CODE!)

def Office(Location_ID, LOC_CODE):
    if (Location_ID &amp;gt;= -1):
        return ""
    else:
        return LOC_CODE&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 05 Mar 2021 15:13:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/return-a-second-field/m-p/1033382#M38187</guid>
      <dc:creator>DavidPike</dc:creator>
      <dc:date>2021-03-05T15:13:41Z</dc:date>
    </item>
    <item>
      <title>Re: Return a second field</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/return-a-second-field/m-p/1033383#M38188</link>
      <description>&lt;P&gt;Try this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;Office(!Location_IDs!,!LOC_CODE!)
def Office(Location_IDs,LOC_CODE):
    if (Location_IDs&amp;gt;= -1):
        return ""
    else:
        return LOC_CODE&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;hahaha:&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/167692"&gt;@DavidPike&lt;/a&gt;&amp;nbsp;beat me by a few seconds!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Mar 2021 15:15:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/return-a-second-field/m-p/1033383#M38188</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2021-03-05T15:15:08Z</dc:date>
    </item>
    <item>
      <title>Re: Return a second field</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/return-a-second-field/m-p/1033384#M38189</link>
      <description>&lt;P&gt;looks beautiful Joe!&lt;/P&gt;</description>
      <pubDate>Fri, 05 Mar 2021 15:14:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/return-a-second-field/m-p/1033384#M38189</guid>
      <dc:creator>DavidPike</dc:creator>
      <dc:date>2021-03-05T15:14:54Z</dc:date>
    </item>
  </channel>
</rss>

