compare method

compare

Compares two string values according to certain collation rules.

Returns

Integer that indicates the lexical relationship between the two comparands

def compare(self, v1, v2, ignore_case):
    ...
ParameterTypeDescription
v1strthe first string
v2strthe second string
ignore_caseboolwhether ignore case when comparing values

See Also