It appears the code sets the specified variable with an operator that does not yield a logical value where Code Analyzer expects one. Code Analyzer can incorrectly display this message if the operator is overloaded. For information on overloading operators, see “Implementing Operators for Your Class”.
If Code Analyzer evaluated the code correctly, rewrite it to set the variable
to a logical
value. Otherwise, suppress the message as described in Adjust Code Analyzer Message Indicators and Messages.