Functionalities
Other
$startsWith
Returns `true` if the content in the 1st field starts with what's in the 2nd field. Otherwise, the function returns `false`.

FUNCTION USAGE

  • $startsWith[content;startsWith]

Properties:

content - The content being checked. startsWith - The letters that the 1st field is being checked for containment.
Example 1: Multiple check statements.
1
bot.Command({
2
name: "check",
3
code: `
4
$startsWith[hello, im just a test;he] // Returns true
5
$startsWith[hello, im just a test;hel] // Returns true
6
$startsWith[hello, im just a test;hello] // Returns true
7
$startsWith[hello, im just a test;facts] // Returns false
8
`
9
})
Copied!
Last modified 4mo ago
Copy link
Contents
Properties: