All perfect praise be to Allah, The Lord of the Worlds. I testify that there is none worthy of worship except Allah and that Muhammad is His slave and Messenger.
Your question is not clear to us because the wording is not precise and there are some contradictions. However, according to what we understood from your question, we would say that according to the view of the majority of scholars, a conditional divorce takes place when its condition is fulfilled. This is so whether the husband had intended divorce or just wanted to threaten his wife.
However, some scholars are of the view that conditional divorce doesn't take place in case the intention was just to threaten her, and if the husband didn't comply with his divorce, then it is dealt with as an oath and he is only required to expiate for an oath.
Divorce uttered by a husband in a state of intense anger takes effect unless he couldn't control his mind and was unaware of his words. To read more about this, you can refer to the Fatwa 89850.
The presence of witnesses is not a condition for divorce to take place, according to the view of most scholars.
The intention of the husband is taken into consideration in specifying the condition of the divorce, if what he claims to be his intention can possibly mean the wording he used in the condition.
If the married couple didn't agree regarding their divorce, then the saying that will be considered is that of the husband, unless the wife is certain of the occurrence of three divorces, in which case she cannot live with him anymore and has to go away from him, and then come to agreement with him to end the contract with money she pays him (like the case of a Khul').
We advise you to consult a reliable scholar whose righteousness and whose knowledge you trust in Islamic centers or elsewhere in your country.
Allah Knows best.