Make the sentence sound more formal: If he wants a relationship with her, then he will not tell her what you had said.
If he wants to be more than friends with her then he won't tell her what you said.