English
Chinese
 
yTin Online Help
 
 
Home (english)
|
Home (chinese)
|
Downloads
|
Sample scripts
|
Online help
|
Utilities
|
FAQs
|
Discussions/Messages
|
Mud&links
|
My Progs
|
Mirrors
|
getlistlength
Command: getlistlength - returns the length of a list
Syntax:  
#getlistlength
{dest var} {list}
Example:
#variable
alignlist {1 2 3}
           
#getl
Length {$alignlist}   <--- returns 3 in the Length variable
Another Example:
           
#delimiter
{;;}
           
#var
list {n;e;s;;get all;n;;e;e;s}
           
#getl
Length $list
The delimiter ";;" breaks the $list into: {n;e;s}, {get all;n} and {e;e;s}
three parts, thus Length variable is now 3.
See also:
#delimiter
,
#getitemnr