$list item

From UBot Playground
Jump to: navigation, search

$list item is a Data Function.

This function will return the list item at the specified position. You can either specify the position by typing in a position number in the functions, or you can set the position with a variable for example.


List: The desired populated list where the list item will be pulled from.


Position: The position of the list item being pulled from the list.


Example[edit]

clear list(%my list)
add list to list(%my list, $list from text("list item 0, list item 1,list item 2, list item 3,list item 4,list item 5", ","), "Delete", "Global")
type text(<username field>, $list item(%my list, 3), "Standard")


Listitem.png


Running the script will fill the field with the list item specified in the list item function.