LIST

From SphereWiki
Revision as of 23:30, 2 January 2013 by Wap (talk | contribs) (Created page with "01-02-2009, Shadow Dragon - Added: Basic LIST support. LIST.xxx to show elements in list. Also, can be used like LIST.xxx=value to clear list and add a value LIST.xxx.ADD ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

01-02-2009, Shadow Dragon - Added: Basic LIST support.

 LIST.xxx to show elements in list. Also, can be used like LIST.xxx=value to clear list and add a value
 LIST.xxx.ADD to add new element to list, can be number or string
 LIST.xxx.CLEAR to clear list
 LIST.xxx.index to read/write value on element in list
 LIST.xxx.COUNT to get count of elements in list
 LIST.xxx.index.REMOVE to remove element at specified index in list
 LIST.xxx.index.INSERT to insert element at specified index in list
 LIST.xxx.FINDELEM search_value returns index of first found element in list. Search starting from begin
 LIST.xxx.index.FINDELEM search_value returns index of first found element in list. Search starting from index
 SERV.PRINTLISTS to print all lists and their elements
 SERV.CLEARLISTS to clear all lists. If used with mask parameter, then clear all lists, which name countains specified mask