-
Repeating text on every line
Hi there guys,
Was just checking out some stuff on ‘for’ loops… but can’t seem get this to work.
Wanted to see something like this:
subject
subject
subject
subject
subject
subject
subject
subjectBasically where I can just have the text repeat line after line. I wrote an expression for Source Text that goes like this but all i get to see is one line in the output i.e. ‘subject’
myText = “subject”;
for(i=1; i<=8; i++){
myText += “\r\n” ;
}What am I doing wrong? Please help. Thanks!
Cheers,
Dean
myText = "subject";
for(i=1; i<=8; i++){
myText += "\r\n" ;
}
myText;