# WildcardMatch

Script
Strings
5.1 OC
string
string text String to compare.
string wildcard String to compare.
Returns whether two strings are equal. The comparison is case sensitive and wildcards are supported.
A * can represent any number of unknown characters (including none). A ? represents exactly one unknown character.
public func IsRiding() { return WildcardMatch(GetAction(), "Ride*"); }
Returns `true` for all actions starting with "Ride" ("Ride" itself, but also "RideStill", "RideThrow", etc.).
WildcardMatch("Explode1", "Explode?");
Is `true`.
WildcardMatch("Explode10", "Explode?");
Is `false`.
WildcardMatch(GetName(), "*purz*");
Checks whether the name of the calling object contains "purz" (no matter where).
Clonkonaut
2008-05