string.endsWith
This function indicates whether a string ends with another string.
Syntax
string.endsWith(str, substr)
Arguments
|
Argument |
Type |
Description |
|---|---|---|
|
str |
string |
Source string |
|
substr |
string |
Ending string that needs to be checked for |
Returns
|
Type |
Description |
|---|---|
|
boolean |
|
Examples
The function string.endsWith("This is a project created in Flogo", "Flogo") returns true.