I have a few variables with different names and values
var_1= 10, var_2 = 20 , var_4 = 40 , var_5 = 50
and I have a variable called i
that has a value assigned in this case i = 4
how can select the variable with a wild card based on the value of i
?
like in some programing languages like java it would be something like this
select_value = var_+i
the result of printing selected_value
would be 40.
Thanks