Add Item to List

From UBot Studio
(Difference between revisions)
Jump to: navigation, search
(Created page with "Add Item to List is a Data Command. This command will append an item to the end of a list. The settings on the command allows you to: Delete Duplicates: ...")
 
Line 11: Line 11:
  
 
== Example ==
 
== Example ==
 +
 
<pre>
 
<pre>
 
add item to list(%firstnames, "Marilynn", "Delete", "Global")
 
add item to list(%firstnames, "Marilynn", "Delete", "Global")
  
 
</pre>
 
</pre>
 +
 +
  
 
The script above will append the name Marilynn to the end of the list %firstnames.
 
The script above will append the name Marilynn to the end of the list %firstnames.
 +
 +
  
 
[[File:item.png]]
 
[[File:item.png]]

Revision as of 18:25, 22 March 2013

Add Item to List is a Data Command.

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

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.


File:Item.png

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox