Home › Forums › Problems and solutions in GDL › Parameter connections › Newparameter › Reply To: Newparameter
April 19, 2016 at 08:52
#2414
Szabadi Gergely
Participant
Thanks for the answer!
I tried to create loop with arrays, but still now working. I don’t get error massage, the script is good, but not working. Does anybody has an idea, why?
parameters a1, a2, a3, a4, a5
!MASTER SCRIPT
dim parama[2][5]
parama[1][1]=1
parama[1][2]=2
parama[1][3]=3
parama[1][4]=4
parama[1][5]=5
parama[2][1]='opt1'
parama[2][2]='opt2'
parama[2][3]='opt3'
parama[2][4]='opt4'
parama[2][5]='opt5'
dim varia[]
varia[1]='a1'
varia[2]='a2'
varia[3]='a3'
varia[4]='a4'
varia[5]='a5'
!PARAMETERS SCRIPT
for k=1 to 5
values{2} "a"+str(k,1,0) parama[1], parama[2]
next k
!3D SCRIPT
for i=1 to 5
if varia(i)='opt1' then !I have error to submit here the right type of bracket
addx (i-1)*.5
block 1, 1, 1
del 1
endif
next i
G. Szabadi