Add $ and Comma at thousandth place Expression

//ADD A “$” AND “,” AT THE THOUSANDS PLACE ONLY:
//ADD SLIDER CONTROL TO TEXT
v="$"+Math.round(effect("Value")("Slider").value);
if (v.length > 3){
v.substr(0, v.length -3) + "," + v.substr(-3);
}else{
v
}
0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published.