Lists & Helpers
listAvg
$listAvg — The average of a list of numbers
The average of a list of numbers. An empty list gives an empty text.
Syntax
$listAvg[list;(separator)]
Parameters
- list (text, required) — Numbers joined by the separator. Text that is not a number raises an error.
- separator (text, optional) — The text between two items. Default:
,.\nmeans a new line.
Return Value
- number.
Usage
$listAvg[3,9,2.5]
Example
$sendMessage[$listAvg[3,9,2.5]]
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.