$string1.isStringEqual($string2)
$string1.isStringEqual($string2, $case-sensitive)
Compares the strings string1 and string2 for equality.
| Name | Type | Description | Mandatory | Default |
|---|---|---|---|---|
| string1 | String | A string to check if it matches string2 |
yes | |
| string2 | String | A string to check if it matches string1 |
yes | |
| case-sensitive | Boolean | Determines whether case sensitivity should be considered. | no | false - case sensitivity is not considered. |
Type: Boolean
Whether string1 matches string2.
isStringEqual("Hello world!", "Hello world!")
Output: true
isStringEqual("Hello world!", "Hello world!", true)
Output: true
isStringEqual("Hello world!", "hello world!", true)
Output: false