DB-Script
Discord Server
NPM
Search…
DB-Script
Getting Started
NPM Updates
Known Bugs
Functionalities
Bot Functions
Events
Functions
Action
Compacts
Conditions
$and
$botInGuild
$channelExists
$checkChars
$checkCondition
$checkContains
$containsCheck
$containsCustomEmoji
$containsEmoji
$customCommandExists
$enabled
$endsWith
$hasAnyRole
$hasPerm
$hasRole
$hasRoles
$hasAttachment
$isBoolean
$isBoosting
$isBanned
$isBot
$isCategory
$isCustomEmoji
$isEmbed
$isEmoji
$isEveryoneMentioned
$If
$isGuildVerified
$isHereMentioned
$isHoisted
$isMentionable
$isNegativeNumber
$isNSFW
$isNumber
$isPinned
$isString
$isUserDMEnabled
$isUserInGuild
$isValidHex
$isValidImageURL
$isValidInvite
$isValidURL
$memberExists
$messageExists
$numberHasDecimal
$or
$roleExists
$userExists
Data
Embeds
Limiters
Music
Variables
Guides
Other
Contributors
Discord Server
FAQs
Staff
Powered By
GitBook
$or
Returns true if one of the conditions are true. Otherwise, returns false.
FUNCTION USAGE
$or[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 incorrect. Returns false.
bot.Command({
name: "check",
code: `
$or[1==4;2==3]
`
})
Example 2: One conditon is not correct. Returns true.
bot.Command({
name: "check",
code: `
$or[1==2;4==4]
`
})
Previous
$numberHasDecimal
Next
$roleExists
Last modified
11mo ago
Copy link
Outline
Properties:
Operators: