Why a variable is true and false at same time?

You have something else setting the variable.