What is the legal situation where an employee submits a conditional resignation, along the lines of “If I don’t achieve ABC within 1 year, I’ll resign”?

Is it enforceable? How much notice has actually been given? At which point does the resignation ‘take effect’ – after 1 year or the date of the resignation letter?
Martin Schmalenbach