Posted 20 January 2013 - 02:18 AM
I'm in the middle of programming my new OS but in print(" ") I can't use "\" when I do and I run the program the "\" symbol dosent show up please help!
print("Hello\nNew line")
print("\\")
that is because \ is a delimiter and is used for example to get a " into a string by typing \" … so to get the character \ you must also delimit itself … use \\
thanx!The \ character is known as the 'escape character' in LUA. For example to go to the next line within a print:print("Hello\nNew line")
To escape that, do a double \\:print("\\")