The interpreter only needs to consider the LHS of the expression for the context to determine if the "=" is being used for comparison or assignment - the RHS always simplifies to a value so isn't significant.