If you do not ask I will not tell.
Si no pides no a contar.
If you do not ask I will not tell.
Thank you
2 Answers
Si no me preguntaras, no te diría..
Hesitant alternative from another learner... Pay more attention to Julian.
Your close, Polyglot. There are various wordings one can use, but with your chosen wording, I would say "Si no me lo preguntas, no te lo divulgo."