Skip to content
Math & Text wordCount

$wordCount — Number of words (blocks of text separated by spaces or new lines)

Number of words (blocks of text separated by spaces or new lines).

Syntax

$wordCount[text]

Parameters

  • text (text, required) — The text.

Return Value

  • number.

Usage

$wordCount[one two  three] → "3"

Example

$sendMessage[$wordCount[one two  three]]

Try it

Paste an example into the playground to preview its message (functions that act on Discord are not run), or build the same thing with blocks.