Changed assignment in conditional to test for equal.