Fixed IF value when comparing booleans, take 3. (take 2 was working fine but was too silly)