Converting integer to String

Hi everyone,
I would like to know how to convert an integer to a string. for instance if i=1 i would like to creat a variable called constant1. i want to do this in a for loop so for each value of i, i create a new variable such as constant2, constant3,... and so on.

for i in 1 2 3
do
commands to create the variables

done

thank you :slight_smile:

guys i just found out how to do it
i only need to use {} brackets around i
for i in 1 2 3

variable ${i}=....

done