Documentation

numwords

Syntax: %numwords(string,delimiter)

return the number of words in string, delimited by string delimiter (if delimiter is missing, a space is used as the word delimiter)

Examples:

#SHOW %numwords("This is a test.")

displays: 4

#SHOW %numwords("Emergency +++ Enemies +++ Fire+Water elementals","+++")

displays: 3

Add comment

Login or register to post comments