len
scorefile command -- return the length of the argument
USAGE:
val = len(somevar)
len will return the length of the argument somevar.
If it is a list, it returns the number of elements in the
list. If it is a string, it returns the number of characters in the
string. For other types it returns "1" (note: this includes
pfield-handles and table-handles -- see the
tablelen
scorefile command for accessing table lengths).
EXAMPLES:
After parsing he following scorefile segment:
arr = {1, 2, 3}
val1 = len(arr)
val2 = len("hey there")
val1 will be set to 3, and val2 will be set to 9.
SEE ALSO:
tablelen,
type,
get_size