<?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: For/while loop to produce a single list by iterating through in Revit Architecture Forum</title>
    <link>https://forums.autodesk.com/t5/revit-architecture-forum/for-while-loop-to-produce-a-single-list-by-iterating-through/m-p/10742495#M96450</link>
    <description>&lt;P&gt;Not sure if I understand but something like this?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Revit - Dynamo Index.png" style="width: 787px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/987016iA56194E6EE2F6BB4/image-dimensions/787x376?v=v2" width="787" height="376" role="button" title="Revit - Dynamo Index.png" alt="Revit - Dynamo Index.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 08 Nov 2021 12:45:35 GMT</pubDate>
    <dc:creator>L.Maas</dc:creator>
    <dc:date>2021-11-08T12:45:35Z</dc:date>
    <item>
      <title>For/while loop to produce a single list by iterating through</title>
      <link>https://forums.autodesk.com/t5/revit-architecture-forum/for-while-loop-to-produce-a-single-list-by-iterating-through/m-p/10736259#M96449</link>
      <description>&lt;P&gt;I am trying to append a specific number of items to an existing list. In the example in the image below the list “a” has one item (0001) and then I append 2 more items (0002 and 0003).&lt;/P&gt;&lt;P&gt;The number of items to append is known but can vary, so I am looking to a way (for / while loop?) that can append that variable number of items and produce one single list.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, if I have 5 items, I need to create a list that would iterate through the values of 0-4 and produce the list:&lt;/P&gt;&lt;P&gt;0001 [n=0]&lt;BR /&gt;0002 [n=1]&lt;BR /&gt;0003 [n=2]&lt;BR /&gt;0004 [n=3]&lt;BR /&gt;0005 [n=4]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;which would be the result of evaluating&lt;/P&gt;&lt;P&gt;x[0][8]&lt;BR /&gt;x[1][8]&lt;BR /&gt;x[2][8]&lt;BR /&gt;x[3][8]&lt;BR /&gt;x[4][8]&lt;/P&gt;&lt;P&gt;(iterating though x[n][8])&lt;/P&gt;&lt;P&gt;All help appreciated. Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dynamo_addtoList.PNG" style="width: 457px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/985999i2A28136387118D1B/image-size/large?v=v2&amp;amp;px=999" role="button" title="dynamo_addtoList.PNG" alt="dynamo_addtoList.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Nov 2021 18:00:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-architecture-forum/for-while-loop-to-produce-a-single-list-by-iterating-through/m-p/10736259#M96449</guid>
      <dc:creator>bruno3UP3U</dc:creator>
      <dc:date>2021-11-04T18:00:26Z</dc:date>
    </item>
    <item>
      <title>Re: For/while loop to produce a single list by iterating through</title>
      <link>https://forums.autodesk.com/t5/revit-architecture-forum/for-while-loop-to-produce-a-single-list-by-iterating-through/m-p/10742495#M96450</link>
      <description>&lt;P&gt;Not sure if I understand but something like this?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Revit - Dynamo Index.png" style="width: 787px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/987016iA56194E6EE2F6BB4/image-dimensions/787x376?v=v2" width="787" height="376" role="button" title="Revit - Dynamo Index.png" alt="Revit - Dynamo Index.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Nov 2021 12:45:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-architecture-forum/for-while-loop-to-produce-a-single-list-by-iterating-through/m-p/10742495#M96450</guid>
      <dc:creator>L.Maas</dc:creator>
      <dc:date>2021-11-08T12:45:35Z</dc:date>
    </item>
    <item>
      <title>Re: For/while loop to produce a single list by iterating through</title>
      <link>https://forums.autodesk.com/t5/revit-architecture-forum/for-while-loop-to-produce-a-single-list-by-iterating-through/m-p/10742708#M96451</link>
      <description>&lt;P&gt;Thanks for reaching out. Turns out I was complicating things and I could do what I wanted with a simple string join!&lt;/P&gt;</description>
      <pubDate>Mon, 08 Nov 2021 14:08:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-architecture-forum/for-while-loop-to-produce-a-single-list-by-iterating-through/m-p/10742708#M96451</guid>
      <dc:creator>bruno3UP3U</dc:creator>
      <dc:date>2021-11-08T14:08:01Z</dc:date>
    </item>
  </channel>
</rss>

