SUNiNET - Your Eggdrop & TCL resources site
[ Home Eggdrop TCL Links About ]

Guide to TCL scripting for Eggdrop 1.6


[ Previous ] [ Index ] [ Next ]


8.5 Determining how many objects a list has

This can be done with the llength command.
The syntax of a llength command is llength <list>.

The <list> is the list from which the objects must be retrieved just like with the lindex command.

This command outputs a string containing a number which equals the objects the list you specified holds, starting at 1 for one object and 0 if the list is empty.


[ Previous ] [ Index ] [ Next ]


Design & Graphics by Shawn Borton
Copyright © 2000-2005 Marijn van Zon