If user selects dataset1, load files A, B, and C - but if user selects dataset2, load files D, E, F ?

This is great but I'm not having much luck implementing it (trying to insert it into my code - I posed it as another thread but didn't get any response).

Is there any way that instead of 'if not DATASET1, load D,E,F instead that it could be more like "If DATASET2, load DEF) ? I'm wondering because I eventually would like to insert 10+ choices and not only 2.

Thanks for your help with this!