Skip to content
Reference > Methods

strEndsWith(text,toFind,ignoreCase)

Definition

Boolean strEndsWith(String text, String toFind, Boolean ignoreCase)

Description

Returns true if text ends with toFind, false otherwise.

Parameter Definition

Name Type Description
text String The base string to text
toFind String the substring to find at start of text
ignoreCase Boolean Should the text be case sensitive

Examples

1
2
3
4
Boolean r1 = strEndsWith("what,now","NOW",true); // r1 == true
Boolean r2 = strEndsWith("what,now","NOW",false); // r2 == false
Boolean r3 = strEndsWith("what,now","where",false); // r3 == false
Boolean r4 = strEndsWith("what,now",null,false); // r4 == false