|
| 1 | +DECLARE Inputs |
| 2 | + HAS |
| 3 | + `Loss or Damage.caused by rodents` IS A BOOLEAN |
| 4 | + `Loss or Damage.caused by insects` IS A BOOLEAN |
| 5 | + `Loss or Damage.caused by vermin` IS A BOOLEAN |
| 6 | + `Loss or Damage.caused by birds` IS A BOOLEAN |
| 7 | + `Loss or Damage.to Contents` IS A BOOLEAN |
| 8 | + `any other exclusion applies` IS A BOOLEAN |
| 9 | + `a household appliance` IS A BOOLEAN |
| 10 | + `a swimming pool` IS A BOOLEAN |
| 11 | + `a plumbing, heating, or air conditioning system` IS A BOOLEAN |
| 12 | + `Loss or Damage.ensuing covered loss` IS A BOOLEAN |
| 13 | + |
| 14 | +@export default We do not cover any loss or damage caused by rodents, insects, vermin, or birds. However, this exclusion does not apply to: (a) loss or damage to your contents caused by birds; or (b) ensuing covered loss unless any other exclusion applies or where an animal causes water to escape from a household appliance, swimming pool or plumbing, heating or air conditioning system. |
| 15 | +GIVEN i IS Inputs |
| 16 | +GIVETH A BOOLEAN |
| 17 | +DECIDE `vermin_and_rodent` i IF |
| 18 | + `not covered if` |
| 19 | + `loss or damage by animals` |
| 20 | + AND NOT `damage to contents and caused by birds` |
| 21 | + OR `ensuing covered loss` |
| 22 | + AND NOT `exclusion apply` |
| 23 | + WHERE |
| 24 | + GIVEN x IS A BOOLEAN |
| 25 | + GIVETH A BOOLEAN |
| 26 | + `not covered if` x MEANS x |
| 27 | + |
| 28 | + `loss or damage by animals` MEANS |
| 29 | + i's `Loss or Damage.caused by rodents` |
| 30 | + OR i's `Loss or Damage.caused by insects` |
| 31 | + OR i's `Loss or Damage.caused by vermin` |
| 32 | + OR i's `Loss or Damage.caused by birds` |
| 33 | + |
| 34 | + `damage to contents and caused by birds` MEANS |
| 35 | + i's `Loss or Damage.to Contents` |
| 36 | + AND i's `Loss or Damage.caused by birds` |
| 37 | + |
| 38 | + `ensuing covered loss` MEANS |
| 39 | + i's `Loss or Damage.ensuing covered loss` |
| 40 | + |
| 41 | + `exclusion apply` MEANS |
| 42 | + i's `any other exclusion applies` |
| 43 | + OR i's `a household appliance` |
| 44 | + OR i's `a swimming pool` |
| 45 | + OR i's `a plumbing, heating, or air conditioning system` |
0 commit comments