Using "" inside a string

Is it possible to use “” inside a string and have them recognised as a string?

If it’s the same as PHP, you may try to use " .
But I’m not a LUA coder, so I don’t really know.

Yup, it’s called string escaping.
You can read about it here :

It’s called escaping. Just precede the quotation mark with a back slash.

[lua]“This is a “string””[/lua]


Ninja’d twice :ninja:

Thanks :smiley:

Another way to do it:
[lua][[This is a “string”]][/lua]

Or delimit the string with ’ and ’ instead of " and ".
‘This is a “perfectly valid” string.’

So could it work like
print([[This is a “string”]])


Edit: 1500 posts.

Ok, haha.