Functions

COMPARE

Compares the values of two strings.

Syntax

bool COMPARE(string a, string b)
bool COMPARE(string a, string b, bool ignoreCase)

Example

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.