-
for loop generating double digit numbers keeps putting more than single digit numbers on multiple lines
I am trying to generate a list of of even numbers between 200 to 0 in a vertical type layer. The for loop I have created works, but when it’s spits out the numbers it places all numbers with more than one digit on multiple lines.
For example
200
Looks like
2
0
0
Is there a way to force the numbers digits to be on one line?
Here is my for loop placed in the source text
x = "";
for (var i=200;i>=0;i = i-2)
{
x = x + i;
}
text.sourceText = ""+ x +"";*EDIT
Nevermind, I was able to figure it out. However, I ended up using a horizontal text layer.
x = "";
for (var i=12;i>=0;i = i-2)
{
x = x + i + "r";
}
text.sourceText = x;