Skip to content
Translations tHas

$tHas

$tHas answers true or false. A key exists when at least one language has a non-empty text for it.

Syntax

$tHas[key]

Parameters

Parameter Description
key Translation key.

Return value

  • true or false.

Examples

$if[$tHas[promo.banner]==true]
  $t[promo.banner]
$endif

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.