Is it possible make varies door types acoording to the given width and height parameters?

Thanks Andreas
It works(shown in the pic below)!But another question comes,how do i set the door orientation and door handing by dynamo?