comparing a value not setting it