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

Try Corticon Now

Ends with

SYNTAX

<String1>.endsWith(<String2>)

DESCRIPTION

Evaluates <String1> and returns a value of true if it ends with the characters specified in <String2>.

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 .endsWith to evaluate whether string1 ends with the characters ville and assigns a different value to string2 for each outcome.

SAMPLE RULETEST

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