Remove Text from list

From UBot Studio
(Difference between revisions)
Jump to: navigation, search
(Created page with " This command is an Advanced List command. This command will remove specified text from a list. '''List:''' The list containing the item that is being remov...")
 
 
(One intermediate revision by one user not shown)
Line 3: Line 3:
  
 
'''List:''' The list containing the item that is being removed.
 
'''List:''' The list containing the item that is being removed.
 +
 
'''Text to remove:''' The text being removed from the list.
 
'''Text to remove:''' The text being removed from the list.
 +
 +
The text to remove is found by searching list items. In this example, the list item "purple" is found and removed.
 +
 +
However, if the list item "purple" had been "purple house", it would not be removed from the list.
 +
 +
The list item "purple" is different from the list item "purple house".
  
 
== Example ==
 
== Example ==

Latest revision as of 14:29, 6 June 2015

This command is an Advanced List command. This command will remove specified text from a list.

List: The list containing the item that is being removed.

Text to remove: The text being removed from the list.

The text to remove is found by searching list items. In this example, the list item "purple" is found and removed.

However, if the list item "purple" had been "purple house", it would not be removed from the list.

The list item "purple" is different from the list item "purple house".

[edit] Example


clear list(%my list)
add list to list(%my list,$list from text("blue,white,green,yellow,purple",","),"Delete","Global")
remove text from list(%my list,"purple","First")

}


Running the command will remove the list item "purple" from the specified list.


Rtfl.jpg


Here is the list before the script is run.


Rtfl0.jpg


Here is the list after the script is run.

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox