Skip to main content
Skip table of contents

endsWith() Operation

Syntax

set aBoolean = aString.endsWith(LITERAL)
set aBoolean = aString.endsWith(anotherString)

Semantics

endsWith() returns true, if the string aString ends with the string represented by the literal or anotherString. In all other cases, false is returned.

Substitutables

aBoolean

Can be any variable or object attribute having the type Boolean.  

aString, anotherString

Can be any variable or object attribute having the type String.

LITERAL

String literal.

Examples

NONE
set aBoolean = aString.endsWith("str"); 
set aBoolean2 = aString1.endsWith(aString2.substring(0, 3)); 

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.