Looping logic through sublists

dynamo
#1

Hi,

This may be somewhat of a simple question - I have several instances where I have multiple sublists which I need to run functions/logic on each one. Is there any way to loop through each sublist and run a set of functions on each one?
(See below for an example, where I am currently duplicating the function and selecting each sublist by its index . . . something I would very much like to avoid)


Thanks,
Ryan

#2

Hi :slight_smile:

Consider using :

  • List-levels
  • Lacing

http://primer.dynamobim.org/en/06_Designing-with-Lists/6-3_lists-of-lists.html
http://primer.dynamobim.org/en/06_Designing-with-Lists/6-4_n-dimensional-lists.html

This will get you started ! :smiley:

Some topics that may help you as well :

2 Likes