Does not start with
The doesNotStartWith
function is used to determine if a string does not start with a specified substring as a boolean.
Format
{STRING_1}.doesNotStartWith({STRING_2}, {BOOLEAN})
Argument | Description |
---|---|
{STRING_1} | The string to perform the check on. |
{STRING_2} | The string to search for within the first string. |
{BOOLEAN} | An optional parameter to determine if the check is case sensitive. By default, this is set to true. |
Example
The following PQL query determines, with case sensitivity, if the person’s name does not start with “Joe”.
person.name.doesNotStartWith("Joe")
Ends with
The endsWith
function is used to determine if a string ends with a specified substring as a boolean.
Format
{STRING_1}.endsWith({STRING_2}, {BOOLEAN})
Argument | Description |
---|---|
{STRING_1} | The string to perform the check on. |
{STRING_2} | The string to search for within the first string. |
{BOOLEAN} | An optional parameter to determine if the check is case sensitive. By default, this is set to true. |
Example
The following PQL query determines, with case sensitivity, if the person’s email address ends with “.com”.
person.emailAddress.endsWith(".com")
Does not end with
The doesNotEndWith
function is used to determine if a string does not end with a specified substring as a boolean.
Format
{STRING_1}.doesNotEndWith({STRING_2}, {BOOLEAN})
Argument | Description |
---|---|
{STRING_1} | The string to perform the check on. |
{STRING_2} | The string to search for within the first string. |
{BOOLEAN} | An optional parameter to determine if the check is case sensitive. By default, this is set to true. |
Example
The following PQL query determines, with case sensitivity, if the person’s email address does not end with “.com”.
person.emailAddress.doesNotEndWith(".com")
Contains
The contains
function is used to determine if a string contains a specified substring as a boolean.
Format
{STRING_1}.contains({STRING_2}, {BOOLEAN})
Argument | Description |
---|---|
{STRING_1} | The string to perform the check on. |
{STRING_2} | The string to search for within the first string. |
{BOOLEAN} | An optional parameter to determine if the check is case sensitive. By default, this is set to true. |
Example
The following PQL query determines, with case sensitivity, if the person’s email address contains the string “2010@gm”.
person.emailAddress.contains("2010@gm")
Does not contain
The doesNotContain
function is used to determine if a string does not contain a specified substring as a boolean.
Format
{STRING_1}.doesNotContain({STRING_2}, {BOOLEAN})
Argument | Description |
---|---|
{STRING_1} | The string to perform the check on. |
{STRING_2} | The string to search for within the first string. |
{BOOLEAN} | An optional parameter to determine if the check is case sensitive. By default, this is set to true. |
Example
The following PQL query determines, with case sensitivity, if the person’s email address does not contain the string “2010@gm”.
person.emailAddress.doesNotContain("2010@gm")
Equals
The equals
function is used to determine if a string is equal to the specified string as a boolean.
Format
{STRING_1}.equals({STRING_2})
Argument | Description |
---|---|
{STRING_1} | The string to perform the check on. |
{STRING_2} | The string to compare with the first string. |
Example
The following PQL query determines, with case sensitivity, if the person’s name is “John”.
person.name.equals("John")