Set boolean true/false

Setting the boole works now but using the variable only works when i set it manually to true or false otherwise it always seems to be false. Anybody has an idea why?