$Pop
From UBot Studio
This function is an Advanced List function. This command removes and returns the last list item.
List: List of items being used by the pop function
Example
clear list(%my list) add list to list(%my list,$list from text("blue,white,green,yellow,purple",","),"Delete","Global") wait(3) alert($pop(%my list))
Running the command will run an alert that brings up the last list item of the list.
The item is then removed from the end of the list