@State=("a","b","c")#the number of elements is variable @Product=("12","13","15") What I want to do is creating an expresion like this: "create $Product[0]&&$Product[1]&&$Product[2]...$Product[n] -$State[0]&&$State[1]&&$State[2]...&&$State[i]" n=number of elements of the array Product i=number of elements of the array State