Storing a multi line string within Monkey

Monkey Forums/Monkey Programming/Storing a multi line string within Monkey

Raz(Posted 2011) [#1]
Is it possible to do this without doing load string?

Like...

Function ReturnMultiLineString:String()
return "I am line 1
I am line 2
I am line 3"
End Function


Ta :)


therevills(Posted 2011) [#2]
Try ~n (newline character):

Function ReturnMultiLineString:String()
return "I am line 1~n
I am line 2~n
I am line 3"
End Function



Raz(Posted 2011) [#3]
Thanks therevills,

I don't know what I did wrong before, but what I originally did now works? :B