Inlakechh
02-20-2008, 11:42 AM
Hey guys, I'm stuck with a little Mel syntax problem.
I`m trying to create an array with a different name each time the calculation goes through a for-loop.
for ($ii=0;$ii<`size $lights`;$ii++)
{
string ("$light_"+$ii+"[]") = `lightlink -query -light $lights[$ii]`
}
it's not putting the number into the $ii variable.
Please give me a hint on how to write it correctly.
Thank you alot in advance.
I`m trying to create an array with a different name each time the calculation goes through a for-loop.
for ($ii=0;$ii<`size $lights`;$ii++)
{
string ("$light_"+$ii+"[]") = `lightlink -query -light $lights[$ii]`
}
it's not putting the number into the $ii variable.
Please give me a hint on how to write it correctly.
Thank you alot in advance.
