We compute self-consistently the Josephson current in a superconductor-antiferromagnet-superconductor junction using a lattice model, focusing on 0 − π transitions occurring when the width of the antiferromagnetic region changes from an even to an odd number of lattice sites. Previous studies predicted 0 − π transitions when alternating between an even and an odd number of sites for sufficiently strong antiferromagnetic order. We study numerically the magnitude of the threshold value for this to occur, and also explain the physics behind its existence in terms of the phase-shifts picked up by the quasiparticles constituting the supercurrent in the antiferromagnet. Moreover, we show that this threshold value allows for pressure-induced 0 − π transitions by destroying the antiferromagnetic nesting properties of the Fermi surface, a phenomenon which has no counterpart in ferromagnetic Josephson junctions, offering a new way to tune the quantum ground state of a Josephson junction without the need of multiple samples. Introduction. The study of the interplay between superconductivity and magnetism has been of considerable interest in condensed matter physics over the last decades. Phenomena such as the 0 − π-transition 1 in ferromagnetic Josephson junctions has received much attention both from a fundamental quantum physics point of view in addition to being suggested as a potential basis for qubits. 2 . While most of the focus in the above context has been on ferromagnetic (F) order, antiferromagnetic (AF) Josephson junctions are also of fundamental interest, due to the close relationship between the superconducting (S) phase and the antiferromagnetic phase in for instance high-temperature cuprate and iron-pnictide superconductors. Superconductivity and antiferromagnetism spindensity wave states may even coexist in the superconducting pnictides. 3 Similar to SFS junctions, antiferromagnetic Josephson junctions (SAFS) have been predicted to display 0 − π-transitions 4 . However, for SAFS these transitions display a high sensitivity to the exact number of atomic layers (even vs. odd number) in the antiferromagnet. Ref. 5 reported that an antiferromagnetic Josephson junction is in a π-state for an odd number of layers, while it is in the 0-state for an even number of layers provided that the antiferromagnetic order is much stronger than the superconducting order. An evenodd effect has also been observed in Josephson junctions with magnetic impurities in the middle layer. 6 In this Rapid Communication, we report on a novel aspect of antiferromagnetic Josephson junctions which allows for control over 0 − π transitions within a single sample in a way which has no counterpart in SFS structures. We first compute numerically the threshold value for the antiferromagnetic order parameter at which the even-odd effect occurs. Below this threshold, even and odd junctions behave qualitatively similar, both displaying a monotonic decay of the supercurrent with superimposed small-scale oscillations, but without any sign-change of t...