Temporary local variable list and global list are both changing

Screenshot 2024-03-06 121030
My student has a global list and has made a local variable list set equal to the global list so that he can delete items from the temporary list. The problem is that the original list is also being changed which shouldn't happen. Can someone help?
Thanks

Use the copy list block to prevent the original global list from being changed

this "feature" is called call by reference... probably interesting to know the difference between call by rererence and call by value...
see also

Taifun

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.