Category: Text function
This function returns the number of words in text. Optionally, the second text argument (delimiters) can contain a list of delimiter characters.
Argument | Type | Description |
---|---|---|
text | Text | Any text, or value that can implicitly converted to text. |
delimiters | Text | (Optional) A list of individual delimiter characters. |
Return value type: Number (integer)
countwords("Bicycle DX-349 black") //Returns 3
countwords("Bicycle DX-349 black", " -.,") //Returns 4 (space and - delimiters)