Reply To: Newparameter

#2420
Szabadi Gergely
Participant

I had found an other problem with it. This is nice, working fine, create 5 block, but if a3=2 still creat 5 block instead of skipping the 3th one

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 ]=1 then
addx (i-1)*.5
block 1, 1, 1
del 1
endif
next i

G. Szabadi