$checkCondition
Returns `true` or `false` if the given conditional values are less than, greater than, equal to or not equal to each other.

FUNCTION USAGE

  • $checkCondition[value1==value2] - Equal to
  • $checkCondition[value1!=value2] - Not equal to
  • $checkCondition[value1>value2] - Greater than
  • $checkCondition[value1<value2] - Less than
  • $checkCondition[value1>=value2] - Greater than OR equal to
  • $checkCondition[value1<=value2] - Less than OR equal to

Properties:

value1 - The first value to compare to the second value. value2 - The second value to compare to the first value.

Basic Examples below:

Example 1: 5 is obviously less than 10 so this will show true.

bot.Command({
name: "check",
code: `
$checkCondition[5<10]
`})
// Returns true

Example 2: 5 is obviously NOT greater than 10 so this will show false.

bot.Command({
name: "check",
code: `
$checkCondition[5>10]
`})
// Returns false

Example 3: 5 is not greater than 5 BUT it is equal to 5 so this will show true.

bot.Command({
name: "check",
code: `
$checkCondition[5>=5]
`})
// Returns true