Remove From List

From UBot Studio
(Difference between revisions)
Jump to: navigation, search
(Example)
Line 21: Line 21:
  
  
[[File:remove0.png]]
+
[[File:remove.jpg]]
  
  
Line 31: Line 31:
  
  
[[File:remove1.png]]
+
[[File:remove0.jpg]]

Revision as of 17:26, 23 September 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.


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