StartsWith

True if a string begins with the given prefix, matching case exactly. For a case-insensitive variant see StartsWithI.

Category: String Returns: bool

Signature

StartsWith(value, prefix)

Examples

StartsWith(var_player_title, "Sir")        // true only if the title starts with "Sir"
StartsWith(var_location_name, "The")       // true for "The Old Mill", "The Docks", etc.
StartsWith(var_greeting, "hello")          // false for "Hello" (capital H)
Docs last synced: 2026-07-08
Screenshot viewer