v5.0.0
$onlyIf
Checks if a condition is true
This function checks if the condition is true or not
1
$onlyIf[value(!=/==/>=/<=/>/<)value2;error message]
Copied!
Examples:
$onlyIf[value==value2;error message]
$onlyIf[value!=value2;error message]
$onlyIf[value>value2;error message]
$onlyIf[value<value2;error message]
$onlyIf[value>=value2;error message]
$onlyIf[value<=value2;error message]
1
bot.command({
2
name: "special",
3
code: `Special Command
4
$onlyIf[15==6;:x: 15 doesn't equal 6!]`
5
})
Copied!
Last modified 1mo ago
Copy link
Edit on GitHub