Show/hide variable fields?

Show/hide variable fields?

Hi, I'm trying to show a field using the field name as a variable
For example, I have a variable showField which currently holds the field named Field_To_Show:
  1. showField="Field_To_Show";
  2. if (showField=="Field_To_Show"){
  3. show Field_To_Show;}
But I would prefer to just have:
  1. showField="Field_To_Show";
  2. show showField;
Thanks,
Levi