<?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 Re: Iterate Elements in an Array to Create HTML Tables from a For Loop in Arcade in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/iterate-elements-in-an-array-to-create-html-tables/m-p/1152072#M44792</link>
    <description>&lt;P&gt;You return inside the for loop, not outside.&lt;/P&gt;&lt;P&gt;When you return from a function, you stop executing it at that point. Everything after it will not be evaulated:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;function test() {
    var x = 2
    return x // returns 2
    // everything after this will never get executed.
    // the new value of x will never be returned, x won't even get changed at all.
    x += 5
    return x
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So when you return inside a for loop, you return just the first element:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var arr = [25, 30, 103]
for(var i in arr) {
    return arr[i] + 1  // this will just return 26 and then stop
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What you want to do is this:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Create an object before the loop that will hold all the intermediate results. In most cases, this will be an array or a string.&lt;/LI&gt;&lt;LI&gt;Inside the loop, append your intermediate results to that object.&lt;/LI&gt;&lt;LI&gt;After the loop, return that object.&lt;/LI&gt;&lt;/UL&gt;&lt;LI-CODE lang="javascript"&gt;var arr = [25, 30, 103]
var output_arr = []
for(var i in arr) {
    Push(output_arr, arr[i] + 1)  // append the intermediate result
}
return output_arr  // this will return [26, 31, 104]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All in all you just have to restructure your code a bit:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var myList = ["Yes", "Yes", "No", "No", "Yes"]
var field1 = [1, 1, "N/A", "N/A", 1] 
var field2 = [1, 1, "N/A", "N/A", 1] 
var field3 = [1, 1, "N/A", "N/A", 1] 

var myHTML = ""  // this string will hold all the tables

for (var v in myList){
    if(myList[v] == "Yes"){
        var testNum = (v + 1)
        var i = v
        var firstField = field1[i]
        var secondField = field2[i]
        var thirdField = field3[i]
        // append the table html. Note that this isn't a dict anymore!
        myHTML += `
            &amp;lt;table style="width:80%"&amp;gt;
              &amp;lt;tbody&amp;gt;
                &amp;lt;tr style="background-color:#636363;color:#FFFFFF;font-size:16px;text-align:center;"&amp;gt;
                  &amp;lt;td colspan="2"&amp;gt;
                    &amp;lt;span style="font-size:16px;"&amp;gt;
                      &amp;lt;strong&amp;gt;Test ${testNum} Results&amp;lt;/strong&amp;gt;&amp;lt;/span&amp;gt;
                  &amp;lt;/td&amp;gt;
                &amp;lt;/tr&amp;gt;
                &amp;lt;tr&amp;gt;
                  &amp;lt;td&amp;gt;
                    &amp;lt;span style="font-size:14px;"&amp;gt;
                      &amp;lt;strong&amp;gt;Volume Min&amp;lt;/strong&amp;gt;&amp;lt;/span&amp;gt;
                  &amp;lt;/td&amp;gt;
                  &amp;lt;td&amp;gt;
                    &amp;lt;span style="font-size:14px;"&amp;gt;${firstField}&amp;lt;/span&amp;gt;
                  &amp;lt;/td&amp;gt;
                &amp;lt;/tr&amp;gt;
                &amp;lt;tr style="background-color:#d9d9d9;"&amp;gt;
                  &amp;lt;td&amp;gt;
                    &amp;lt;span style="font-size:14px;"&amp;gt;
                      &amp;lt;strong&amp;gt;Total Volume Flowed&amp;lt;/strong&amp;gt;&amp;lt;/span&amp;gt;
                  &amp;lt;/td&amp;gt;
                  &amp;lt;td&amp;gt;
                    &amp;lt;span style="font-size:14px;"&amp;gt;${secondField}&amp;lt;/span&amp;gt;
                  &amp;lt;/td&amp;gt;
                &amp;lt;/tr&amp;gt;
                &amp;lt;tr&amp;gt;
                  &amp;lt;td&amp;gt;
                    &amp;lt;span style="font-size:14px;"&amp;gt;
                      &amp;lt;strong&amp;gt;Accuracy (%)&amp;lt;/strong&amp;gt;&amp;lt;/span&amp;gt;
                  &amp;lt;/td&amp;gt;
                  &amp;lt;td&amp;gt;
                    &amp;lt;span style="font-size:14px;"&amp;gt;${thirdField}&amp;lt;/span&amp;gt;
                  &amp;lt;/td&amp;gt;
                &amp;lt;/tr&amp;gt;
              &amp;lt;/tbody&amp;gt;
            &amp;lt;/table&amp;gt;
        `
    } else {
        myHTML += "&amp;lt;p&amp;gt;No results for Test " + (v + 1) + "&amp;lt;/p&amp;gt;"
    }
}
// return the complete HTML outside of the for loop
return {"type": "text", "text": myHTML}&lt;/LI-CODE&gt;</description>
    <pubDate>Wed, 09 Mar 2022 10:34:55 GMT</pubDate>
    <dc:creator>JohannesLindner</dc:creator>
    <dc:date>2022-03-09T10:34:55Z</dc:date>
    <item>
      <title>Iterate Elements in an Array to Create HTML Tables from a For Loop in Arcade</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/iterate-elements-in-an-array-to-create-html-tables/m-p/1152023#M44791</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I'm a bit stuck trying to generate multiple HTML tables (or conditionally visible table rows) in a popup based upon the value of fields in an array. In this case, multiple tests are being performed (up to five) on one meter, but I only want to show results tables for tests that were actually performed so that I don't have blank table rows and/or use more real estate than necessary. The data is flat, so there are redundant fields (as you can see in the global variables) rather than a one-to-many relationship. There is one Boolean field (ADD_TEST_#) that is flipped from "No" to "Yes" before each test is performed. Each has a default value of "No". The code below works great for the first test, but fails to create any additional tables in the popup for additional test. I realize the code could be optimized, but I don't&amp;nbsp;want to spend too much more time on this until I know this is achievable.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var myList = [$feature.ADD_TEST_1, $feature.ADD_TEST_2, $feature.ADD_TEST_3, $feature.ADD_TEST_4, $feature.ADD_TEST_5]
var field1 = [IIF(IsEmpty($feature.T1_VOL_MIN), "No Value", $feature.T1_VOL_MIN), IIF(IsEmpty($feature.T2_VOL_MIN), "No Value", $feature.T2_VOL_MIN), IIF(IsEmpty($feature.T3_VOL_MIN), "No Value", $feature.T3_VOL_MIN), IIF(IsEmpty($feature.T4_VOL_MIN), "No Value", $feature.T4_VOL_MIN), IIF(IsEmpty($feature.T5_VOL_MIN), "No Value", $feature.T5_VOL_MIN)] 
var field2 = [IIF(IsEmpty($feature.T1_TVOL_FLWD), "No Value", $feature.T1_TVOL_FLWD), IIF(IsEmpty($feature.T2_TVOL_FLWD), "No Value", $feature.T2_TVOL_FLWD), IIF(IsEmpty($feature.T3_TVOL_FLWD), "No Value", $feature.T3_TVOL_FLWD), IIF(IsEmpty($feature.T4_TVOL_FLWD), "No Value", $feature.T4_TVOL_FLWD), IIF(IsEmpty($feature.T5_TVOL_FLWD), "No Value", $feature.T5_TVOL_FLWD)]
var field3 = [IIF(IsEmpty($feature.T1_ACCURCY), "No Value", $feature.T1_ACCURCY), IIF(IsEmpty($feature.T2_ACCURCY), "No Value",$feature.T2_ACCURCY), IIF(IsEmpty($feature.T3_ACCURCY), "No Value", $feature.T3_ACCURCY), IIF(IsEmpty($feature.T4_ACCURCY), "No Value", $feature.T4_ACCURCY), IIF(IsEmpty($feature.T5_ACCURCY), "No Value", $feature.T5_ACCURCY)]

for (var v in myList){
    if(myList[v] == "Yes"){
        var testNum = (v + 1)
        var i = v
        var firstField = field1[i]
        var secondField = field2[i]
        var thirdField = field3[i]
        var myTable = { 
        	"type" : "text", 
        	"text" : `
            &amp;lt;table style="width:80%"&amp;gt;
              &amp;lt;tbody&amp;gt;
                &amp;lt;tr style="background-color:#636363;color:#FFFFFF;font-size:16px;text-align:center;"&amp;gt;
                  &amp;lt;td colspan="2"&amp;gt;
                    &amp;lt;span style="font-size:16px;"&amp;gt;
                      &amp;lt;strong&amp;gt;Test ${testNum} Results&amp;lt;/strong&amp;gt;&amp;lt;/span&amp;gt;
                  &amp;lt;/td&amp;gt;
                &amp;lt;/tr&amp;gt;
                &amp;lt;tr&amp;gt;
                  &amp;lt;td&amp;gt;
                    &amp;lt;span style="font-size:14px;"&amp;gt;
                      &amp;lt;strong&amp;gt;Volume Min&amp;lt;/strong&amp;gt;&amp;lt;/span&amp;gt;
                  &amp;lt;/td&amp;gt;
                  &amp;lt;td&amp;gt;
                    &amp;lt;span style="font-size:14px;"&amp;gt;${firstField}&amp;lt;/span&amp;gt;
                  &amp;lt;/td&amp;gt;
                &amp;lt;/tr&amp;gt;
                &amp;lt;tr style="background-color:#d9d9d9;"&amp;gt;
                  &amp;lt;td&amp;gt;
                    &amp;lt;span style="font-size:14px;"&amp;gt;
                      &amp;lt;strong&amp;gt;Total Volume Flowed&amp;lt;/strong&amp;gt;&amp;lt;/span&amp;gt;
                  &amp;lt;/td&amp;gt;
                  &amp;lt;td&amp;gt;
                    &amp;lt;span style="font-size:14px;"&amp;gt;${secondField}&amp;lt;/span&amp;gt;
                  &amp;lt;/td&amp;gt;
                &amp;lt;/tr&amp;gt;
                &amp;lt;tr&amp;gt;
                  &amp;lt;td&amp;gt;
                    &amp;lt;span style="font-size:14px;"&amp;gt;
                      &amp;lt;strong&amp;gt;Accuracy (%)&amp;lt;/strong&amp;gt;&amp;lt;/span&amp;gt;
                  &amp;lt;/td&amp;gt;
                  &amp;lt;td&amp;gt;
                    &amp;lt;span style="font-size:14px;"&amp;gt;${thirdField}&amp;lt;/span&amp;gt;
                  &amp;lt;/td&amp;gt;
                &amp;lt;/tr&amp;gt;
              &amp;lt;/tbody&amp;gt;
            &amp;lt;/table&amp;gt;
        `
    }
    return myTable
        
    }else{
        return "No results for Test " + (v + 1)
    }
    
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/1108"&gt;@XanderBakker&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/275"&gt;@PaulBarker&lt;/a&gt;, any thoughts on what may be causing the issue?&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;</description>
      <pubDate>Wed, 09 Mar 2022 05:11:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/iterate-elements-in-an-array-to-create-html-tables/m-p/1152023#M44791</guid>
      <dc:creator>PeterDalrymple</dc:creator>
      <dc:date>2022-03-09T05:11:37Z</dc:date>
    </item>
    <item>
      <title>Re: Iterate Elements in an Array to Create HTML Tables from a For Loop in Arcade</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/iterate-elements-in-an-array-to-create-html-tables/m-p/1152072#M44792</link>
      <description>&lt;P&gt;You return inside the for loop, not outside.&lt;/P&gt;&lt;P&gt;When you return from a function, you stop executing it at that point. Everything after it will not be evaulated:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;function test() {
    var x = 2
    return x // returns 2
    // everything after this will never get executed.
    // the new value of x will never be returned, x won't even get changed at all.
    x += 5
    return x
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So when you return inside a for loop, you return just the first element:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var arr = [25, 30, 103]
for(var i in arr) {
    return arr[i] + 1  // this will just return 26 and then stop
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What you want to do is this:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Create an object before the loop that will hold all the intermediate results. In most cases, this will be an array or a string.&lt;/LI&gt;&lt;LI&gt;Inside the loop, append your intermediate results to that object.&lt;/LI&gt;&lt;LI&gt;After the loop, return that object.&lt;/LI&gt;&lt;/UL&gt;&lt;LI-CODE lang="javascript"&gt;var arr = [25, 30, 103]
var output_arr = []
for(var i in arr) {
    Push(output_arr, arr[i] + 1)  // append the intermediate result
}
return output_arr  // this will return [26, 31, 104]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All in all you just have to restructure your code a bit:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var myList = ["Yes", "Yes", "No", "No", "Yes"]
var field1 = [1, 1, "N/A", "N/A", 1] 
var field2 = [1, 1, "N/A", "N/A", 1] 
var field3 = [1, 1, "N/A", "N/A", 1] 

var myHTML = ""  // this string will hold all the tables

for (var v in myList){
    if(myList[v] == "Yes"){
        var testNum = (v + 1)
        var i = v
        var firstField = field1[i]
        var secondField = field2[i]
        var thirdField = field3[i]
        // append the table html. Note that this isn't a dict anymore!
        myHTML += `
            &amp;lt;table style="width:80%"&amp;gt;
              &amp;lt;tbody&amp;gt;
                &amp;lt;tr style="background-color:#636363;color:#FFFFFF;font-size:16px;text-align:center;"&amp;gt;
                  &amp;lt;td colspan="2"&amp;gt;
                    &amp;lt;span style="font-size:16px;"&amp;gt;
                      &amp;lt;strong&amp;gt;Test ${testNum} Results&amp;lt;/strong&amp;gt;&amp;lt;/span&amp;gt;
                  &amp;lt;/td&amp;gt;
                &amp;lt;/tr&amp;gt;
                &amp;lt;tr&amp;gt;
                  &amp;lt;td&amp;gt;
                    &amp;lt;span style="font-size:14px;"&amp;gt;
                      &amp;lt;strong&amp;gt;Volume Min&amp;lt;/strong&amp;gt;&amp;lt;/span&amp;gt;
                  &amp;lt;/td&amp;gt;
                  &amp;lt;td&amp;gt;
                    &amp;lt;span style="font-size:14px;"&amp;gt;${firstField}&amp;lt;/span&amp;gt;
                  &amp;lt;/td&amp;gt;
                &amp;lt;/tr&amp;gt;
                &amp;lt;tr style="background-color:#d9d9d9;"&amp;gt;
                  &amp;lt;td&amp;gt;
                    &amp;lt;span style="font-size:14px;"&amp;gt;
                      &amp;lt;strong&amp;gt;Total Volume Flowed&amp;lt;/strong&amp;gt;&amp;lt;/span&amp;gt;
                  &amp;lt;/td&amp;gt;
                  &amp;lt;td&amp;gt;
                    &amp;lt;span style="font-size:14px;"&amp;gt;${secondField}&amp;lt;/span&amp;gt;
                  &amp;lt;/td&amp;gt;
                &amp;lt;/tr&amp;gt;
                &amp;lt;tr&amp;gt;
                  &amp;lt;td&amp;gt;
                    &amp;lt;span style="font-size:14px;"&amp;gt;
                      &amp;lt;strong&amp;gt;Accuracy (%)&amp;lt;/strong&amp;gt;&amp;lt;/span&amp;gt;
                  &amp;lt;/td&amp;gt;
                  &amp;lt;td&amp;gt;
                    &amp;lt;span style="font-size:14px;"&amp;gt;${thirdField}&amp;lt;/span&amp;gt;
                  &amp;lt;/td&amp;gt;
                &amp;lt;/tr&amp;gt;
              &amp;lt;/tbody&amp;gt;
            &amp;lt;/table&amp;gt;
        `
    } else {
        myHTML += "&amp;lt;p&amp;gt;No results for Test " + (v + 1) + "&amp;lt;/p&amp;gt;"
    }
}
// return the complete HTML outside of the for loop
return {"type": "text", "text": myHTML}&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 09 Mar 2022 10:34:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/iterate-elements-in-an-array-to-create-html-tables/m-p/1152072#M44792</guid>
      <dc:creator>JohannesLindner</dc:creator>
      <dc:date>2022-03-09T10:34:55Z</dc:date>
    </item>
    <item>
      <title>Re: Iterate Elements in an Array to Create HTML Tables from a For Loop in Arcade</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/iterate-elements-in-an-array-to-create-html-tables/m-p/1152335#M44802</link>
      <description>&lt;P&gt;Hi Johannes, thanks so much for your help! That did fix the issue I was having. Here is the working code for anyone else's benefit.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var myList = [$feature.ADD_TEST_1, $feature.ADD_TEST_2, $feature.ADD_TEST_3, $feature.ADD_TEST_4, $feature.ADD_TEST_5]
var field1 = [IIF(IsEmpty($feature.T1_VOL_MIN), "No Value", $feature.T1_VOL_MIN), IIF(IsEmpty($feature.T2_VOL_MIN), "No Value", $feature.T2_VOL_MIN), IIF(IsEmpty($feature.T3_VOL_MIN), "No Value", $feature.T3_VOL_MIN), IIF(IsEmpty($feature.T4_VOL_MIN), "No Value", $feature.T4_VOL_MIN), IIF(IsEmpty($feature.T5_VOL_MIN), "No Value", $feature.T5_VOL_MIN)] 
var field2 = [IIF(IsEmpty($feature.T1_TVOL_FLWD), "No Value", $feature.T1_TVOL_FLWD), IIF(IsEmpty($feature.T2_TVOL_FLWD), "No Value", $feature.T2_TVOL_FLWD), IIF(IsEmpty($feature.T3_TVOL_FLWD), "No Value", $feature.T3_TVOL_FLWD), IIF(IsEmpty($feature.T4_TVOL_FLWD), "No Value", $feature.T4_TVOL_FLWD), IIF(IsEmpty($feature.T5_TVOL_FLWD), "No Value", $feature.T5_TVOL_FLWD)]
var field3 = [IIF(IsEmpty($feature.T1_ACCURCY), "No Value", $feature.T1_ACCURCY), IIF(IsEmpty($feature.T2_ACCURCY), "No Value",$feature.T2_ACCURCY), IIF(IsEmpty($feature.T3_ACCURCY), "No Value", $feature.T3_ACCURCY), IIF(IsEmpty($feature.T4_ACCURCY), "No Value", $feature.T4_ACCURCY), IIF(IsEmpty($feature.T5_ACCURCY), "No Value", $feature.T5_ACCURCY)]
var myTable = ""

for (var v in myList){
    if(myList[v] == "Yes"){
        var testNum = (v + 1)
        var i = v
        var firstField = field1[i]
        var secondField = field2[i]
        var thirdField = field3[i]
        myTable += 
            `&amp;lt;table style="width:82%"&amp;gt;
              &amp;lt;tbody&amp;gt;
                &amp;lt;tr style="background-color:#636363;color:#FFFFFF;font-size:16px;text-align:center;"&amp;gt;
                  &amp;lt;td colspan="2"&amp;gt;
                    &amp;lt;span style="font-size:16px;"&amp;gt;
                      &amp;lt;strong&amp;gt;Test ${testNum} Results&amp;lt;/strong&amp;gt;&amp;lt;/span&amp;gt;
                  &amp;lt;/td&amp;gt;
                &amp;lt;/tr&amp;gt;
                &amp;lt;tr&amp;gt;
                  &amp;lt;td&amp;gt;
                    &amp;lt;span style="font-size:14px;"&amp;gt;
                      &amp;lt;strong&amp;gt;Volume Min&amp;lt;/strong&amp;gt;&amp;lt;/span&amp;gt;
                  &amp;lt;/td&amp;gt;
                  &amp;lt;td&amp;gt;
                    &amp;lt;span style="font-size:14px;"&amp;gt;${firstField}&amp;lt;/span&amp;gt;
                  &amp;lt;/td&amp;gt;
                &amp;lt;/tr&amp;gt;
                &amp;lt;tr style="background-color:#d9d9d9;"&amp;gt;
                  &amp;lt;td&amp;gt;
                    &amp;lt;span style="font-size:14px;"&amp;gt;
                      &amp;lt;strong&amp;gt;Total Volume Flowed&amp;lt;/strong&amp;gt;&amp;lt;/span&amp;gt;
                  &amp;lt;/td&amp;gt;
                  &amp;lt;td&amp;gt;
                    &amp;lt;span style="font-size:14px;"&amp;gt;${secondField}&amp;lt;/span&amp;gt;
                  &amp;lt;/td&amp;gt;
                &amp;lt;/tr&amp;gt;
                &amp;lt;tr&amp;gt;
                  &amp;lt;td&amp;gt;
                    &amp;lt;span style="font-size:14px;"&amp;gt;
                      &amp;lt;strong&amp;gt;Accuracy (%)&amp;lt;/strong&amp;gt;&amp;lt;/span&amp;gt;
                  &amp;lt;/td&amp;gt;
                  &amp;lt;td&amp;gt;
                    &amp;lt;span style="font-size:14px;"&amp;gt;${thirdField}&amp;lt;/span&amp;gt;
                  &amp;lt;/td&amp;gt;
                &amp;lt;/tr&amp;gt;
              &amp;lt;/tbody&amp;gt;
            &amp;lt;/table&amp;gt;`
    }else if (myList[v] == "No") {
        var testNum = (v + 1)
        mytable += 
        `&amp;lt;table style="width:82%"&amp;gt;
            &amp;lt;tbody&amp;gt;
                &amp;lt;tr style="background-color:#FFC107;color:#FFFFFF;font-size:16px;text-align:center;"&amp;gt;
                  &amp;lt;td colspan="2"&amp;gt;
                    &amp;lt;span style="font-size:16px;"&amp;gt;
                      &amp;lt;strong&amp;gt;No results for Test ${testNum}&amp;lt;/strong&amp;gt;&amp;lt;/span&amp;gt;
                  &amp;lt;/td&amp;gt;
            &amp;lt;/tbody&amp;gt;
        &amp;lt;/table&amp;gt;`
    }
}

return {"type" : "text", "text" : myTable}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;</description>
      <pubDate>Wed, 09 Mar 2022 20:52:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/iterate-elements-in-an-array-to-create-html-tables/m-p/1152335#M44802</guid>
      <dc:creator>PeterDalrymple</dc:creator>
      <dc:date>2022-03-09T20:52:06Z</dc:date>
    </item>
  </channel>
</rss>

