skip to main content
Corticon Studio: Rule Language Guide : Rule operator details and examples : Starts with
 

Try Corticon Now

Starts with

SYNTAX

<String1>.startsWith(<String2>)

DESCRIPTION

Returns a value of true if <String1> begins with the characters specified in <String2>. Comparisons are case-sensitive.

USAGE RESTRICTIONS

The Operators row of the table in Summary Table of Vocabulary Usage Restriction applies. No special exceptions.

RULESHEET EXAMPLE

The following Rulesheet uses .startsWith to evaluate whether string1 begins with the value of string2 and assigns a different value to boolean1 for each outcome.

SAMPLE TEST

A sample Ruletest provides string1 and string2 values for four examples. Input and Output panels are shown below.