Why won't this boolean work?

I already figured it out but aha thanks!