PPI then OTD or vice versa

I’m going to look at a used car before spending money on a PPI to make sure it’s what I really want. Should I negotiate the OTD price before having the inspection done and say something along the lines of “if the PPI comes back with a good bill of heath I will purchase the vehicle however if not we will have to reevaluate the OTD price or have the car fixed before i’m willing to purchase it” OR after test driving tell them I require a PPI before I am willing to go any further. Also, if negotiating the OTD price first is an option should I sign for the agreeded upon OTD price or would it ruin my chance to negotiate later if the PPI comes back and there is something wrong with the vehicle.