Weird behavior with booleans

but how i’m i supposed to find the right instance cuz with the code i have right now it doesn’t seem to work.