ContainsI

True if a substring appears anywhere in a string, ignoring case. For the case-sensitive variant see Contains.

Category: String Returns: bool

Signature

ContainsI(haystack, needle)

The first argument is the string to search; the second is the substring to look for.

Examples

ContainsI(var_player_name, "sir")       // true regardless of capitalization
ContainsI(var_reply, "YES")             // case-insensitive yes match
!ContainsI(var_player_input, "@")       // gate that the input isn't an email
Docs last synced: 2026-07-08
Screenshot viewer