Remove From List

From UBot Studio
Revision as of 17:26, 23 September 2013 by LillyT (Talk | contribs)

Jump to: navigation, search

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.


Remove.jpg


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.


Remove0.jpg

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox