I have an issue with a conditional clause, which is quite an unfamiliar experience for me. :)
Here's my first try (or something very close to it):
- "If it would not be possible to do X after doing Y, doing Y will fail."
But is this really an acceptable use of "would" in an if-clause?
I thought about alternatives using the standard form of conditionals:
- "If it is not possible to do X after doing Y, doing Y will fail." - This seems the most natural, but it doesn't convey the hypothetical nature of doing Y.
- "If it were not possible to do X after doing Y, doing Y would fail." - This feels completely off.
- Type 3 clearly doesn't fit.
How do I adequately (and grammatically) convey that Y will not be done if (and only if) X becomes impossible after doing Y?
edit: I see from the answers and comments that it was a mistake to simplify the sample the way I did, and that context is missing. :)
So here's the full context: I'm documenting code, namely a function deleting users from a database. The sentence is about lockout prevention.
- "If it would not be possible to execute
foo()after deleting the user (due to the user being the last admin user), deletion will fail."