Hello everyone
I would like to know how to move an specific item of a list to first index:
For example, I have currently this list:
I would like to move the “1” to the first place so I’d get [1,0,2] and [1,10,23]
Lots of thanks.
PD: The content of this post is outdated and inaccesible:
https://forum.dynamobim.com/t/moving-list-item-to-another-index/1617
Steven
November 20, 2020, 9:24pm
2
How do you want it to function? Do you always want List Index 1 from the first list to move to Index 0 or do you want the list value of 1 to move to Index 0?
I want to move list value of 1 to move to Index 0.
Steven
November 20, 2020, 9:51pm
4
I am sure there is a more elegant way without List.GetItemAtIndex Causing a warning but it works.
Steven
November 20, 2020, 10:03pm
5
More elegant but with the addition of a package Package Name If Equal Return Index Updated
2 Likes