info.mailtraq.com > Management > Script Functions A-Z > ListCount() ListCount()Determines the number of items in a Mailtraq list. Lists are used frequently in the scripting language and consist of a string of items, optionally surrounded by quote marks (ASCII 34), separated by commas (ASCII 44), tabs (ASCII 9) or spaces (ASCII 32).
count := ListCount( list )
- list
- A list of items as a string
- count
- A positive integer giving the number of items in list or zero if list is empty
//Example usage
3 := ListCount("one, two, three")
3 := ListCount("one two three")
3 := ListCount("one,two three") |