Group multiple fields as variable

Group multiple fields as variable

Hi,
I was wondering if there's a way to group multiple fields as a single variable. For instance, if I have a form that has these billing and shipping address fields:
Billing_Name
Billing_Address
Billing_State
Shipping_Name
Shipping_Address
Shipping_State






and Shipping_Same_As_Billing

it would be great to define, somehow,
Shipping_Fields = (Shipping_Name, Shipping_Address, Shipping_State)
if (Shipping_Same_As_Billing)
{
      hide Shipping_Fields;
}
else
{
      show Shipping_Fields;
}









Instead of having to type:

hide Shipping_Name;
hide Shipping_Address;
hide Shipping_State;




for every instance.

Thanks in advance,
Elizabeth