Compares the values of two strings.
bool COMPARE(string a, string b)
bool COMPARE(string a, string b, bool ignoreCase)
COMPARE(ProductName,ProductSold)
If the ProductName is the same as the ProductSold then the function will return true
, if they are not the same then false
will be returned.
or
COMPARE("Apples", "apples", false)
Will return 'False', as they are not of the same case.
or
COMPARE("Apples", "apples", true)
Returns true
as the case has been ignored.