What’s wrong with this code?

Hello!

My suggestion is that newMember.id field may contain integer type, when your comparison is against string type.

Hope this will help.

Hey @zikuaca6678654253, welcome to the forums!
What language is this? If it’s JavaScript, to use the equals operator in an if statement, you need to use ===, not ==.