Copy link to clipboard
Copied
Hi!
I can't find the solution to something I thought can be easily fixed.
I created a very basic counter, going from 100 € to 2000 €.
So the Slider Control effect is applied on a solid, and I applied this expression to the Source Text:
Math.round(thisComp.layer("counter").effect("Slider Control")("Slider")) + " €"
However, I would like the numbers above 999 to be spelt with a space. So basically: "1 000", instead of "1000".
I found the expression "addComas", but nothing for the space.
Can you help me on that?
Thanks!
I believe you can replace the comma with a space in line 26 ( I think )
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Thank you but unless I didn't understand it well, this is for adding comas, right?
What I need is adding blank spaces. "1 000", "1 500"... no coma, no dot.
Is there any chance I can make this happen with a bunch of code lines?
Thanks!
Copy link to clipboard
Copied
I believe you can replace the comma with a space in line 26 ( I think )
Copy link to clipboard
Copied
'' ''
Copy link to clipboard
Copied
Awesome thank a lot!
Copy link to clipboard
Copied
It doesn't matter what you add as the delimiter. A space is just the same as a comma and it's added with an " " or a"\s".
Mylenium