mIRC Homepage
Posted By: BIGZIPZ Count number of words - 14/07/08 01:29 PM
I've been reading the Numbers and Text section of the help file looking for an identifier which is capable of counting the number of words in a text. Obviously $len is fine for letter counting, but is anyone aware of how to word count?

Thank you.
Posted By: genius_at_work Re: Count number of words - 14/07/08 01:47 PM
Take a look at Token Identifiers, specifically $numtok.

Code:

var %text = This sentence has five words.
echo -a $numtok(%text,32)



-genius_at_work
© mIRC Discussion Forums