Add item to nested list


#1

Hi Everyone,

I’ve been trying to figure out how to add an item to the beginning/end of of a nested list with no luck. The nested list can have variable rank, so I’d like to avoid using @level commands. Here’s a diagram of what I’m trying to achieve:

Thanks.


#2

Hi @marmilk,

List.AddItemToFront/End nodes should help you reach your goal.


#3

If what @Alban_de_Chasteigner does not solve your problem check out this post for more advanced list management.