Can a Mel string be defined with carriage returns in it?

Can a Mel string be defined with carriage returns in it?

malcolm_341
Collaborator Collaborator
292 Views
1 Reply
Message 1 of 2

Can a Mel string be defined with carriage returns in it?

malcolm_341
Collaborator
Collaborator

Is something like this possible, or does a string always have to be defined on the same line it starts?

 

string $myString = {"Some

text

here\n"}

0 Likes
Accepted solutions (1)
293 Views
1 Reply
Reply (1)
Message 2 of 2

malcolm_341
Collaborator
Collaborator
Accepted solution

And the answer is you can do it by using back slashes

 

string $myString = "this \
is \
a \
string";

print $myString;

0 Likes