Skip to content
Entity Info math

$math — Runs math expression, returns nothing if incorrect expression.

Runs math expression, returns nothing if incorrect expression.

Syntax

$math[expr]

Parameters

  • expr (text, required) — The math expression to run

Return Value

  • Number.

Usage

$math[expr] → result

Example

$sendMessage[$math[2+3*4]]

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.