Author Topic: newline character don't exist?  (Read 1650 times)

GEEK

  • Guest
newline character don't exist?
« on: October 23, 2013, 12:32:12 PM »
hi scriptwriters!
have a simple question here, how do you store
a newline or return (cr or lf) character in a variable
and print it down?

I tried "\n" and chr(10) but nope...
help please?

Cybermonkey

  • Administrator
  • *****
  • Posts: 0
Re: newline character don't exist?
« Reply #1 on: October 23, 2013, 01:24:15 PM »
This does not work with EGSL output on graphical windows. Only for the console, like this (you'd better use CLScript for that):
Code: [Select]
print ("Hello"..chr(13).."World")or like this:
Code: [Select]
print ("Hello\nWorld")Be aware that EGSL is limited on the text output and input since it's meant for 2D games not text processors.  ;)