Basically, global solutionMoleculeColor is = (1,1,2,2,3,3 / some random variation with 2 of each number). I am stamping each number of solutionMoleculeColor, and so I do that by deleting the part I already stamped. But I need to access solutionMoleculeColor later on.
So to solve that, I set a temporary variable that is = solutionMoleculeColor, and I will delete the parts I stamped on the temporary variable so I can use solutionMoleculeColor later on. My problem is that it is still deleting solutionMoleculeColor and I have no idea why. I tried various other workarounds but it's like my project is cursed to always delete solutionMoleculeColor
Hopefully this makes sense. I'll insert the whole project download just in case.
TLDR: code is deleting wrong list Eureka.aia (22.0 KB)
So when you remove an item from a list, all the other items move down to fill the hole.
So if you want to deplete a list as you consume its items, all you ever need is item 1. After you remove item 1, the old items will move down to give you a new item 1.
By the way, I am leery of the idea of using numbers 1,2,3 as dictionary keys. It is worth checking if it will act like a list of lists, if you try removing say item 2 and hope to still find an item 3 of your original 3 items.