endsWith() Operation

Syntax

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

Semantics

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

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

ActionScript_StartsEndsWith_Example

Click here to download a simple example model that shows how to use Action Script to get prefixes and suffixes in a string with Scheer PAS Designer.

📗