$if
Creates a condition and executes a code depending on the condition.
Usage
$if[condition;if true;if false]Param
Description
Type
Required
Examples
Example #1
bot.commands.add({
type: "basicCommand",
name: "example",
code: `
$if[$isNumber[$message]==true;
Message is a number!
;
Message is not a number!]
`
})Example #2
Last updated
Was this helpful?