mi viene in mente che la soluzione sia un switch (select case);

ma cerco che non è un gran che dinamica

altre soluzioni?