Remove From List

From UBot Studio
(Difference between revisions)
Jump to: navigation, search
Line 1: Line 1:
 
Remove From List is a [[Data Commands|Data Command]].
 
Remove From List is a [[Data Commands|Data Command]].
  
This command will remove a list item by list position
+
This command will remove a list item by list position.
  
 
'''List:''' The list the item will be removed from.
 
'''List:''' The list the item will be removed from.

Revision as of 19:33, 24 April 2013

Remove From List is a Data Command.

This command will remove a list item by list position.

List: The list the item will be removed from.

Position: The position of the item that is going to be removed.


Example

navigate("http://www.fruitsinfo.com/tropical-fruits.php", "Wait")
add list to list(%one, $scrape attribute(<href=w"http://www.fruitsinfo.com/*.php">, "innertext"), "Delete", "Global")
remove from list(%one, 0)

Notice that there is nothing in the list position 0. It is just taking up space without any value.


File:Remove0.png


Setting the list position in the remove from list command to 0 allows us to remove that blank space. Notice that the rest of the list move up.

No empty space is left in the script.


File:Remove1.png

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox