syntax:functions:countwords
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
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)
Examples
countwords("Bicycle DX-349 black") //Returns 3
countwords("Bicycle DX-349 black", " -.,") //Returns 4 (space and - delimiters)
See also
syntax/functions/countwords.txt · Last modified: 2024/10/21 12:33 by craigt