that or if

Hi everybody,

(Source:Murphy’s English Grammar)
I am sorry for any trouble I have caused.

that or if:
I am sorry for any trouble that I have caused.
I am sorry for any trouble if I have caused.

Thanks in advance

That is correct.

#1. I am sorry for any trouble that I have caused. = I am sorry for any I-have-caused trouble.
#2. *I am sorry for any trouble if I have caused. < I am sorry for any trouble if I have caused it.