Functionalities
Other
$containsAmount
Returns the amount of characters or words defined in the 1st field from the 2nd field.

FUNCTION USAGE

  • $containsAmount[content;check]

Properties:

content - The content being checked for. check - The characters or words checking the 1st field to see how many it contains.

Example 1: Returns the number 2 because the 1st field contains 2 letter t's

1
bot.Command({
2
name: "test",
3
code: `
4
$containsAmount[testing;t]
5
`
6
})
Copied!

Example 2: Returns the number 2 because the 1st field contains 2 testing words

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

Example 3: Returns the number 4 because the 1st field contains 4 letter t's

1
bot.Command({
2
name: "test",
3
code: `
4
$containsAmount[testing testing;t]
5
`
6
})
Copied!
Last modified 11mo ago
Copy link
Contents
Properties: