Choose where you’d like to start

endsWith()

Overview

The endsWith() function takes a string and a searchString as arguments. It returns True if searchString is found at the end of the string. Otherwise, it returns False.

Note: This function performs a case-sensitive search.

Return Type

  • Boolean

Syntax

<variable> = <string>.endsWith( <searchString> );

(OR)

<variable> = endsWith( <string>, <searchString> );
ParameterDescriptionData type
<variable>Variable which will contain the boolean value, true or false.BOOLEAN
<string>

The string which may end with the searchString.

TEXT
<searchString>

The searchString with which the main string may end.

TEXT

Examples

Product="Zoho Creator";
var = endsWith(Product, "Creator");     //returns true

Product="Zoho Creator";
var = endsWith(Product, "creator");     //returns false

Get Started Now

Execute