i want to create a function where i can create a general variables like data from below table for example if i give grace_type = National then it will create general variables Grace 1, grace 2 m grce 3, grace 4 as (2,2,6,9)
the same way i want to give for continental , national, Rural.....
for example if i give global option as grace_type = National then
Grace 1 should automatically to 2
Grace 2 should automatically to 2
Grace 3 should automatically to 6
Grace 4 should automatically to 9
Continental | International | National | Regional | Rural | No grace | |
---|---|---|---|---|---|---|
Grace 1 | 3 | 4 | 2 | 3 | 4 | 0 |
Grace 2 | 5 | 4 | 2 | 3 | 4 | 0 |
Grace 3 | 7 | 8 | 6 | 4 | 4 | 0 |
Grace 4 | 10 | 12 | 9 | 8 | 7 | 0 |