The idea is next. My script calculates an integer from 1 to 3. Depending on a number I want to deal (in a certain way) with a related script parameter. Say, if script gives 1, I want to deal wtih param1, if 2 then it must be param2, etc.
In order to achieve this – is it possible to put prarn1, param2, pararm3 into any array and deal with each of them by addressing via the array index? Something like this:
all_param_array={prarn1, param2, pararm3}
all_param_array[integer]=my_other_calculation
If it’s doable what would be a correct syntax?