Can I sell my current apartment to the condition that I can buy my new home, for which a compromise has already been signed?

Make implementation of the final sale of your apartment in buying your home is possible. Indeed this acquisition is already officially recorded event, which must be achieved within a given period, the sales agreement was already signed.

Warning: this condition precedent must never turn into a condition potestative (whose implementation is up to you) which would make it zero.