$and
Returns true if both conditions are true. Otherwise, returns false.

FUNCTION USAGE

    $and[condition1;condition2]

Properties:

condition1 - The first condition in the check. condition2 - The second condition in the check.

Operators:

> (greater than) < (less than) >= (greater than or equal to) <= (less than or equal to) == (equal to) != (not equal to)

Example 1: Both conditions are correct. Returns true.

1
bot.Command({
2
name: "check",
3
code: `
4
$and[1==1;2!=3]
5
`
6
})
Copied!

Example 2: One conditon is not correct. Returns false.

1
bot.Command({
2
name: "check",
3
code: `
4
$and[1==2;4==4]
5
`
6
})
Copied!
Last modified 1mo ago
Copy link