This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
SamusAZero's profile picture

Why /n doesnt work?

Started by SamusAZero, 04 August 2012 - 12:19 AM
SamusAZero #1
Posted 04 August 2012 - 02:19 AM
I use this code:
local output = "hello"
output = output .. "/n world!"
but when i print output, it prints only "hello/n world!" and makes no new line.
My question is now: What am I doing wrong?
MysticT #2
Posted 04 August 2012 - 02:23 AM
You have to use a backslash:

local output = "hello"
output = output.."n world"
SamusAZero #3
Posted 04 August 2012 - 02:31 AM
So simple.. I'm just thinking way too complicated. :/ Thanks for your help!