Operator =
Return TRUE
if the values are equal, FALSE
otherwise
Usage
left_value = right_value
Parameters
left_value |
(Required) Value to compare |
right_value |
(Required) Value to compare |
Examples
More information
If the values are of different types, such as a text and a number, the result is FALSE
.
This operator is case insensitive, so “A” is considered equal to “a”. Use the EXACT
function if you need case sensitivity.
Unlike Excel, this operator also runs TRIM
on the texts it receives. With Word’s formatting, it’s quite easy to accidentally
have double spaces or spaces between the quotes and the text. Using TRIM
automatically means that "hello world"
is
considered equal to " hello world "
, but not to "helloworld"
. Use the
EXACT
function if you don’t want this automated TRIM
.