StartsWith Function

  • Updated

Determines if a text string or expression starts with another text string or expression.

Syntax 1

 

Determines if a text string or expression starts with another text string or expression.

 

StartsWith(string, searchValue)

 

 

Arguments:

 

 

 

string

String - A string.

 

 

searchValue

String - A string.

Syntax 2

 

Determines if a text string or expression starts with another text string or expression.

 

StartsWith(string, searchValue, caseSensitive)

 

 

Arguments:

 

 

 

string

String - A string.

 

 

searchValue

String - A string.

 

 

caseSensitive

Boolean - True for a case-sensitive search. If omitted, false (case-insensitive search) is used.

Remarks

  • Example: StartsWith("Discount applied to order", "applied") returns false.
  • Example: StartsWith("Discount applied to order", "Discount") returns true.
  • Example: StartsWith("Discount applied to order", "discount") returns true.
  • Example: StartsWith("Discount applied to order", "discount", true) returns false.

Was this article helpful?

0 out of 0 found this helpful

Comments

0 comments

Article is closed for comments.