[BUG] If Statement

I have a actionperformed script on a button but it seems one of my if statements refused to work.
see the image beneath, It will print the part marked in yellow, and it says that the variables i used are the same. But the things i want to do in the if statement are not executed at all.

(the writings to label and button are just for testing because of this bug)

Just taking a quick guess at it, but have you compared the datatypes of what your comparing?
eg. “print type(tag[user][“UserID”]))” vs “print type(userid)”

hmm, it seems that “self.session.props.auth.user.id” is indeed not an integer. I used the userid as integer. Thanks