user warning: Table './zuggsoftdb/accesslog' is marked as crashed and should be repaired query: INSERT INTO accesslog (title, path, url, hostname, uid, sid, timer, timestamp) values('', 'node/313', '', '38.107.179.244', 0, 'p9hsf3bgjdo5ftg4qbk7n6hpq6', 6407, 1337597003) in /home/tessh/public_html/modules/statistics/statistics.module on line 64.

Documentation

countlist

Syntax: %countlist(list)

Count the number of times each item appears in a string list and return a database record with the items as key properties, and the count of each item as the value of the key.

Examples:

#VAR ToDo {kill orc|kill goblin|kill orc}
#VAR ToDo %countlist(@ToDo)
#LOOPDB @ToDo {#SHOW %key %val}


displays:

kill orc 2
kill goblin 1

Add comment

Login or register to post comments