What is the main function of idhā in «kharajtu fa-idhā Zayd»?

Conditions of the Predicate: Ellipsis, Reconstruction and Expression