Is it "ok" to use a for i loop and not use i inside the loop (just use it as a counter).....for example lets say I have 30 objects to turn off...(x=0)
Is it ok to go:
Code: Select all
decl i,obj=Knob1;
for (i=0; i<30; i++)
{
setexpression(obj,'x',0);
obj=getnext(obj);
}
Or is it better to go:
Code: Select all
decl i=0,obj=Knob1;
while (i<30)
{
setexpression(obj,'x',0);
obj=getnext(obj);
i++;
}
edit: also, it took me longer than it should to understand that the editor is smart enough to know that Knob12 is after Knob9 but the parser needs Knob09 to put Knob12 after it........arghhhhhhhhhhhhhhhhhh......
Can we please at least fix the editor so that Object11 is placed before Object9 (example) to reflect how the parser trule handles the tree order?
Here's what I mean!