Not sure how to explain my question which have bothered me for some hours now, but ill try anyway. The problem im having is that my dynamo script sometimes has a list with sub items, and sometimes not. When im using list.map i can only get it to work on either cases, but not both. I bet there is an easy solution for this, but i cant seem to find it. See picture for both cases.
Case 1 (With sublist)
Case 2 (No sublist)
Could not add another image because im a new user.