Push

From UBot Studio
(Difference between revisions)
Jump to: navigation, search
(Created page with " This command is an Advanced List command. This command will insert an item into the beginning of a list. '''Seconds To Wait:''' The list the item will be p...")
 
 
(One intermediate revision by one user not shown)
Line 2: Line 2:
 
This command is an [[Advanced List|Advanced List]] command. This command will insert an item into the beginning of a list.
 
This command is an [[Advanced List|Advanced List]] command. This command will insert an item into the beginning of a list.
  
'''Seconds To Wait:''' The list the item will be pushed to.  
+
'''List:''' The list the item will be pushed to.  
  
 
'''Item to push:''' Item being pushed to the beginning of the script.
 
'''Item to push:''' Item being pushed to the beginning of the script.
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 17: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.


Push.jpg

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox