Forum Discussion

suzanne_raine's avatar
suzanne_raine
Contributor
9 years ago

Using the Find/FindChild method, the script doesn't like property values on multiple lines?

Hi, 

 

I'm using the find/find child method, and one of the properties I'm trying to find is the "contentText".
However, the contentText values look a bit like this:

"John
Suzanne
Jane
Daniel
Emma"

 

Where they're on multiple lines, my script doesn't seem to like that - it gives a syntax error - it wants that value on ONE line. 

 

How can I adjust my script so it behaves? :)

2 Replies

  • Maybe the string should include newline characters (\n)?

     

    Something like:

    var names = "John\nSuzanne\nJane\nDaniel\nEmma"

     

    Im guessing here