12-21-2006 19:44
CODE

if (curlight>llGetListLength(channels)-1)
curlight = llGetListLength(channels)-1;

vs.
CODE

if (curlight>llGetListLength(channels) - 1)
curlight = llGetListLength(channels) - 1;


Only the second one works due to the spaces when subtracting 1. Is this as designed? I've never coded in a language that was so specific about operators having to have spaces on both sides of it. Seems odd to me.