Lists & Helpers
ifThen
$ifThen — Inline condition: returns one of two values
Inline condition: returns one of two values. Only the chosen one is evaluated.
Syntax
$ifThen[condition;ifTrue;(ifFalse)]
Parameters
- condition (condition, required) — Same syntax as
$checkCondition. - ifTrue (text, required) — Returned when the condition is true.
- ifFalse (text, optional) — Returned when it is false. Default: empty.
Return Value
- string.
Usage
$ifThen[$authorID==123;Boss;Member] → "Boss" or "Member"
Example
$sendMessage[$ifThen[$authorID==123;Boss;Member]]
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.