Paraphrase: "I was believing that I was confident I could do this, but only in the case I would play my best tennis.
I was going to the court believing I could do this, only if I played my best tennis.