Peter,
One way you might try is to use "values" in the parameter script.
Make a text type parameter, name it "dtyp" (or something),
then in the parameters script make a list something like this.
values "dtyp" "door_01",door_2","door_3",...etc
This creates a pull down list in the lib part settings that allows
the user to select a door type.
Then you can use your if statements this way.
if dtyp="door_1" then.....
if dtyp="door_2" then....
There are many other ways but this is an easy one.
Peter Devlin