exact() Function

Compares two given text strings in a case-sensitive manner, returning true only if they are exactly the same.


exact( text1, text2 )

text1: (Text) One of two strings that will be compared.

text2: (Text) The other string that will be compared.




When comparing text strings, using this function over the = operator improves performance. The = operator, however, is case-insensitive. Only use the exact() function when case-insensitivity is not a requirement.


You can experiment with this function in the test box below.

Test Input

exact("Copy of the other","Copy of the other") returns true

exact("HELLO","HELLO") returns true

exact("Hello","HELLO") returns false

See Also

Comparison Operators: Use the = operator when your text string requires case-insensitivity.

Open in Github Built: Fri, Mar 11, 2022 (04:59:07 PM)

On This Page