Table of Contents

CountWords(text, [delimiters])

Category: Text function


Description

This function returns the number of words in text. Optionally, the second text argument (delimiters) can contain a list of delimiter characters.


Arguments

ArgumentTypeDescription
textTextAny text, or value that can implicitly converted to text.
delimitersText(Optional) A list of individual delimiter characters.

Return value type: Number (integer)


Examples

countwords("Bicycle DX-349 black")  //Returns 3
countwords("Bicycle DX-349 black", " -.,")  //Returns 4 (space and - delimiters)


See also