GetBestMatch (open)
Find the best match for a string fiven a list of alternatives. Defaults to case insensitive match.
Syntax
LOADLIB "wh::util/comparisons.whlib";
STRING FUNCTION GetBestMatch(STRING name, STRING ARRAY alternatives, RECORD options)Parameters
STRING nameName to search
STRING ARRAY alternativesAlternatives to choose from
RECORD optionsOptions
casesensitiveDo a case sensitive compare (defaults to FALSE)
Return value
STRING