Switch boolean attributes with flags