Push
From UBot Studio
(Difference between revisions)
| Line 12: | Line 12: | ||
add list to list(%my list,$list from text("blue,white,green,yellow,purple",","),"Delete","Global") | add list to list(%my list,$list from text("blue,white,green,yellow,purple",","),"Delete","Global") | ||
wait(3) | wait(3) | ||
| − | push(%my list,"black") | + | push(%my list,"black","Global") |
</pre> | </pre> | ||
Latest revision as of 16:50, 6 June 2015
This command is an Advanced List command. This command will insert an item into the beginning of a list.
List: The list the item will be pushed to.
Item to push: Item being pushed to the beginning of the script.
[edit] Example
clear list(%my list)
add list to list(%my list,$list from text("blue,white,green,yellow,purple",","),"Delete","Global")
wait(3)
push(%my list,"black","Global")
Running the command will push the new item "black" to the beginning of the list.
