endsWith

Syntax

endsWith(X, str)

Arguments

X is a string scalar/vector.

str is a string scalar.

Details

Check if X ends with str. If yes, return true; otherwise, return false.

Examples

$ endsWith('ABCDEF!', "F!");
1

$ endsWith('ABCDEF!', "E!");
0