Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

How to I put different characters in my string?

Asked by 3 years ago

Please provide more explanation in your question. If you explain exactly what you are trying to accomplish, it will be much easier to answer your question correctly.

I am trying to put a " in a string, but it is just an error :(

local string = """
--Error

why is this happening and how can i fix it?

1 answer

Log in to vote
1
Answered by 3 years ago
Edited 3 years ago

You actually can't put a " if you're defining a string using two "s, so what you could do is use two 's because they also work for defining strings. Small example:

local string = 'This is a string that can use "double quotes" and doesnt error'
0
intresting deadwalker601 110 — 3y
Ad

Answer this question