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.
|