Data Functions
From UBot Studio
(Difference between revisions)
(→List of Variable Functions) |
(→List of Data Functions) |
||
(12 intermediate revisions by one user not shown) | |||
Line 1: | Line 1: | ||
− | ''' | + | '''Data Functions''' manipulate data. Data can be represented in the form of variables, lists, and tables. |
− | ==List of | + | [[File:dfunctions.jpg]] |
+ | |||
+ | ==List of Data Functions== | ||
*[[$list total]]: Returns the total number of items in a list | *[[$list total]]: Returns the total number of items in a list | ||
− | *[[$list position|$ | + | *[[$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) | + | *[[$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|set list position command]]) |
*[[$previous list item]]: Returns the list item at the list's current position and decrements the list's position | *[[$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 | *[[$list item]]: Returns a list item at a specified position | ||
Line 12: | Line 14: | ||
*[[$list from text]]: Returns a list of items by separating the text into separate items based on a delimiter | *[[$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 | *[[$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)'' | + | *[[$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)'' | + | *[[$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)'' | + | *[[$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 cell]]: Returns the value of a table cell | ||
*[[$table total rows]]: Returns the number of rows in a table | *[[$table total rows]]: Returns the number of rows in a table | ||
*[[$table total columns]]: Returns the number of columns in a table | *[[$table total columns]]: Returns the number of columns in a table | ||
+ | *[[$table search]]: Returns the row index or the column index where a specific string is located in a table | ||
+ | *[[$list from table]]: Returns the contents of a specified row or column as list items |
Latest revision as of 13:19, 11 November 2013
Data Functions manipulate data. Data can be represented in the form of variables, lists, and tables.
[edit] List of Data 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
- $table search: Returns the row index or the column index where a specific string is located in a table
- $list from table: Returns the contents of a specified row or column as list items