Oh, you want the comma. I get it now. 🙂
This should do it:
startValue = 7000;
endValue = 13000;
dur = 30; //seconds
s = “” + Math.round(linear(time,0,dur,startValue,endValue));
s.substr(0,s.length-3) + “,” + s.substr(-3,3)
It will only work for values from 1,000 to 999,999
The tricky part of the expession is just converting the number to a string and then manipulating the string (using the JavaScript substr() method) to split the string into two pieces an stick a comma in between. You may need to dig into a javaScript reference to really figure it out.
Dan