EndsWith

True if a string ends with the given suffix, matching case exactly. For a case-insensitive variant see EndsWithI.

Category: String Returns: bool

Signature

EndsWith(value, suffix)

Examples

EndsWith(var_player_title, 'the Wise')   // true only if the title ends with 'the Wise'
EndsWith(var_item_name, 'Sword')         // true for 'Rusty Sword', 'Elder Sword', etc.
EndsWith(var_farewell, 'goodbye')        // false for 'Goodbye' (capital G)
Docs last synced: 2026-07-18
Screenshot viewer