ntention to divorce one’s wife: Is it regarded as an effective divorce?

A man swearing that his friend will not buy something from the grocery and not completing the phrase, and the friend not buying