<?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 Print multiple results with one Arcade expression using nested loops in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/print-multiple-results-with-one-arcade-expression/m-p/1217885#M48151</link>
    <description>&lt;P&gt;I am attempting to simplify Arcade expressions using loops. Currently, I have multiple Arcade expressions checking for a condition using "IIf" function to check if a field within pop up of a feature layer meets a certain condition. I am checking if a field contains 'Y'. If it does then I want it to print "None" or if it doesn't then print "inline". Since I am doing this same process for multiple fields, I have many Arcade expressions doing this same "IIf" function.&lt;/P&gt;&lt;P&gt;First part:&lt;/P&gt;&lt;P&gt;I wanted to attempt to use loop to simplify this. My initial thought is to store the fields that I am checking for 'Y' in an array and run a loop on that array. Basically, for each position of the array (which contains the field name), I would be checking the fields using "IIf" function and return the result ("None" if contains 'Y' and "inline" for 'N').&lt;/P&gt;&lt;P&gt;Second part:&lt;/P&gt;&lt;P&gt;Once the first part is completed, I want to add another array which contains the field name itself from the feature layer or I can store the field name as a text manually. I want to correspond that field name with the result of the first part above. For example, if I have a field name as "Bike" and from the first part above, the "IIf" function finds it to be "None", I want the the final result to be "Bike None".&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How would I do this in Arcade? Any thoughts? Thank you!&lt;/P&gt;</description>
    <pubDate>Fri, 30 Sep 2022 14:20:09 GMT</pubDate>
    <dc:creator>ArafatHassan_Westerville</dc:creator>
    <dc:date>2022-09-30T14:20:09Z</dc:date>
    <item>
      <title>Print multiple results with one Arcade expression using nested loops</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/print-multiple-results-with-one-arcade-expression/m-p/1217885#M48151</link>
      <description>&lt;P&gt;I am attempting to simplify Arcade expressions using loops. Currently, I have multiple Arcade expressions checking for a condition using "IIf" function to check if a field within pop up of a feature layer meets a certain condition. I am checking if a field contains 'Y'. If it does then I want it to print "None" or if it doesn't then print "inline". Since I am doing this same process for multiple fields, I have many Arcade expressions doing this same "IIf" function.&lt;/P&gt;&lt;P&gt;First part:&lt;/P&gt;&lt;P&gt;I wanted to attempt to use loop to simplify this. My initial thought is to store the fields that I am checking for 'Y' in an array and run a loop on that array. Basically, for each position of the array (which contains the field name), I would be checking the fields using "IIf" function and return the result ("None" if contains 'Y' and "inline" for 'N').&lt;/P&gt;&lt;P&gt;Second part:&lt;/P&gt;&lt;P&gt;Once the first part is completed, I want to add another array which contains the field name itself from the feature layer or I can store the field name as a text manually. I want to correspond that field name with the result of the first part above. For example, if I have a field name as "Bike" and from the first part above, the "IIf" function finds it to be "None", I want the the final result to be "Bike None".&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How would I do this in Arcade? Any thoughts? Thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 30 Sep 2022 14:20:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/print-multiple-results-with-one-arcade-expression/m-p/1217885#M48151</guid>
      <dc:creator>ArafatHassan_Westerville</dc:creator>
      <dc:date>2022-09-30T14:20:09Z</dc:date>
    </item>
  </channel>
</rss>

