Replace List Item

From UBot Studio
(Difference between revisions)
Jump to: navigation, search
(Created page with "This command is an Advanced List command. This command will replace a list item at a specified position. '''List:''' List containing item being replaced. ''...")
 
Line 2: Line 2:
  
 
'''List:''' List containing item being replaced.
 
'''List:''' List containing item being replaced.
 +
 
'''Position:''' Position of the item that is being replaced.
 
'''Position:''' Position of the item that is being replaced.
 +
 
'''New Item:''' The new item replacing the removed item.  
 
'''New Item:''' The new item replacing the removed item.  
  

Revision as of 14:40, 6 June 2015

This command is an Advanced List command. This command will replace a list item at a specified position.

List: List containing item being replaced.

Position: Position of the item that is being replaced.

New Item: The new item replacing the removed item.

Example


clear list(%my list)
add list to list(%my list,$list from text("blue,white,green,yellow,purple house",","),"Delete","Global")
replace list item(%my list,2,"black")


The list item located at position 2 on the list is "green".


Running the command will remove the list item "green" and replace it with the new list item "black".


Rli.jpg

Here is the list before the command is run.


Rli0.jpg


Here is the list after the command is run.

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox