How do I express that an event in the past could have occurred, if not for some other condition that prevented it from occurring?
We could have deployed the code on Tuesday, but our tests were failing.
I would have bought groceries, if my car had not broken down.
He almost passed the test; unfortunately he ran out of time.
She might have finished the race, however she was dehydrated.
In English we have a lot of different words that can be substituted in for the bolded words above.
What is the simplest way to express this pattern?
What are some other variations that can also express this pattern?