Add Item to List

From UBot Studio
Jump to: navigation, search

Add Item to List is a Data Command.

This command will append an item to the end of a list.


List To Add To: the list the item will be added to.

Item to Add: The item being added to the list. The command also accepts variables and functions such as $next list item, $list item, $random list item, $previous list item, and $table cell.


Clicking the Advanced option on the command expands and reveals another option.

The settings on the command allows you to:

  • Delete Duplicates: Allows you to set deleting duplicates in a list to Delete or Don't Delete
  • List Scope: Allows you to decide if you want your list to be local to the command or script it is inside or global to the entire bot.


Example

add item to list(%firstnames, "Marilynn", "Delete", "Global")


The script above will append the name Marilynn to the end of the list %firstnames.


Itl.jpg

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox