SYNTAX

<String1>.endsWith(<String2>)

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

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

The following Rulesheet uses .endsWith to evaluate whether string1 ends with the characters ville and assigns a different value to string2 for each outcome.

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