Replace equal with comparison