Used comparison operator

changed assignment to comparison