Complex sentence: When the beggar is leaving, there is an exchange of gifts, if the beggar does not have a gift to give, they will still be given one.
Split into simpler sentences: When the beggar is leaving, there is an exchange of gifts. If the beggar does not have a gift to give, they will still be given one.