while you're at it; taking the opportunity to do; incidentally
郵便局に行くついでに、コンビニにも寄ってきた。
yuubinkyoku ni iku tsuide ni, konbini ni mo yotte kita.
While I was headed to the post office, I swung by the convenience store too. casual
出張のついでに、大学時代の友人に会ってきました。
shucchou no tsuide ni, daigaku jidai no yuujin ni atte kimashita.
I met up with a friend from my university days while I was on my business trip. neutral
Variants
ついでtsuidecolloquial
に drops when ついで stands alone as the reason for a small extra action — ついでだから、お土産も買った; never before a verb.
ついでに
ついでにtsuide niN3neutral