Fix assignment in if() to comparison.