Corrected <> operator to != instead of ==.