Data Functions
From UBot Studio
(Difference between revisions)
Line 1: | Line 1: | ||
+ | Functions in the ***Variable Functions*** group manipulate data in the form of [[variables]], [[lists]], and [[tables]]. | ||
− | [[$List total]]: Returns the total number of items in a list | + | ==List of Variable Functions== |
− | + | *[[$List total]]: Returns the total number of items in a list | |
− | [[$list position|$List Position]]: Returns the position of a specific list item | + | *[[$list position|$List Position]]: Returns the position of a specific list item |
− | + | *[[$Random list item]]: Returns a randomly selected item from a list | |
− | [[$Random list item]]: Returns a randomly selected item from a list | + | *[[$next list item|$Next List Item]]: Returns the list item at the list's current position and increments the list's position (used with the set list position command) |
− | + | *[[$Previous list item]]: Returns the list item at the list's current position and decrements the list's position | |
− | [[$next list item|$Next List Item]]: Returns the list item at the list's current position and increments the list's position (used with the set list position command) | + | *[[$List item]]: Returns a list item at a specified position |
− | + | *[[$Read file]]: Returns the contents of a file | |
− | [[$Previous list item]]: Returns the list item at the list's current position and decrements the list's position | + | *[[$List from file]]: Returns a list made up of each item within a file. |
− | + | *[[$List from text]]: Returns a list of items by separating the text into separate items based on a delimiter | |
− | [[$List item]]: Returns a list item at a specified position | + | *[[$Text from list]]: Returns text based on connecting each list item by a connector |
− | + | *[[$Subtract lists]]: Returns the first list with all items from the second list removed from it (Pro and Dev Editons Only) | |
− | [[$Read file]]: Returns the contents of a file | + | *[[$Sort lists]]: Returns the original list sorted in ascending or descending order (Pro and Dev Editons Only) |
− | + | *[[$Common list items]]: Returns a new list containing the common items between the first and second list (Pro and Dev Editons Only) | |
− | [[$List from file]]: Returns a list made up of each item within a file. | + | *[[$Table cell]]: Returns the value of a table cell |
− | + | *[[$Table total rows]]: Returns the number of rows in a table | |
− | [[$List from text]]: Returns a list of items by separating the text into separate items based on a delimiter | + | *[[$Table total columns]]: Returns the number of columns in a table |
− | + | ||
− | [[$Text from list]]: Returns text based on connecting each list item by a connector | + | |
− | + | ||
− | [[$Subtract lists]]: Returns the first list with all items from the second list removed from it (Pro and Dev Editons Only) | + | |
− | + | ||
− | [[$Sort lists]]: Returns the original list sorted in ascending or descending order (Pro and Dev Editons Only) | + | |
− | + | ||
− | [[$Common list items]]: Returns a new list containing the common items between the first and second list (Pro and Dev Editons Only) | + | |
− | + | ||
− | [[$Table cell]]: Returns the value of a table cell | + | |
− | + | ||
− | [[$Table total rows]]: Returns the number of rows in a table | + | |
− | + | ||
− | [[$Table total columns]]: Returns the number of columns in a table | + |
Revision as of 01:11, 10 October 2012
Functions in the ***Variable Functions*** group manipulate data in the form of variables, lists, and tables.
List of Variable Functions
- $List total: Returns the total number of items in a list
- $List Position: Returns the position of a specific list item
- $Random list item: Returns a randomly selected item from a list
- $Next List Item: Returns the list item at the list's current position and increments the list's position (used with the set list position command)
- $Previous list item: Returns the list item at the list's current position and decrements the list's position
- $List item: Returns a list item at a specified position
- $Read file: Returns the contents of a file
- $List from file: Returns a list made up of each item within a file.
- $List from text: Returns a list of items by separating the text into separate items based on a delimiter
- $Text from list: Returns text based on connecting each list item by a connector
- $Subtract lists: Returns the first list with all items from the second list removed from it (Pro and Dev Editons Only)
- $Sort lists: Returns the original list sorted in ascending or descending order (Pro and Dev Editons Only)
- $Common list items: Returns a new list containing the common items between the first and second list (Pro and Dev Editons Only)
- $Table cell: Returns the value of a table cell
- $Table total rows: Returns the number of rows in a table
- $Table total columns: Returns the number of columns in a table