ifNotEqual function