Add Item to List
From UBot Studio
(Difference between revisions)
(→Example) |
|||
(4 intermediate revisions by one user not shown) | |||
Line 1: | Line 1: | ||
Add Item to List is a [[Data Commands|Data Command]]. | Add Item to List is a [[Data Commands|Data Command]]. | ||
− | This command will append an item to the end of a list. | + | 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: | 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 | + | *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. | + | *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. |
Line 23: | Line 31: | ||
− | [[File: | + | [[File:itl.jpg]] |
Latest revision as of 17:05, 23 September 2013
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.
[edit] Example
add item to list(%firstnames, "Marilynn", "Delete", "Global")
The script above will append the name Marilynn to the end of the list %firstnames.