For the complete documentation index, see llms.txt. This page is also available as Markdown.

StringEndsWith

Determines whether a string ends with a specified suffix.

Method Signature

StringEndsWith(string=[string], substring=[string])

Arguments

Argument
Type
Required
Description
Default

string

string

true

The string to check.

substring

string

true

The suffix to check for.

Examples

Check if a string ends with a suffix

result = "hello.txt".endsWith( ".txt" );
writeOutput( result );

Result: true

Case-sensitive by default

result = "Hello.TXT".endsWith( ".txt" );
writeOutput( result );

Result: false

Using the member function

Result: true

Last updated

Was this helpful?