strEndsWith

Tests if a string ends with a specific suffix. Takes str (string to test), suffix (suffix to check for). Returns 1 if str ends with suffix, otherwise returns 0.

String

Parameters & Returns

Parameters

str String
suffix String

Returns

Int

Quick Summary

Tests if a string ends with a specific suffix. Takes str (string to test), suffix (suffix to check for). Returns 1 if str ends with suffix, otherwise returns 0.

Technical Exegesis...

Returns 1 if str ends with suffix, otherwise returns 0. The comparison is case-sensitive.

Returns 0 if suffix is longer than str, or if either parameter is null. Useful for file extension checking, path validation, or parsing formatted strings.

Example

Example.bam
; No example implemented yet