How to copy fields based on condition?

How to copy fields based on condition?

Hi,

I am creating a form for customer details. I have both the Billing address and Shipping address and I have created a condition to hide the shipping address if both the billing address and shipping address are the same.

However, how do I copy data so both shipping address and billing address are populated?

Regards,
B