Not sure if this is the correct category, but I believe it is.
Since I have started scripting I have always used (“text”) for example:
print("Hello there!")
Some months ago I have discovered that the same could be done with
print'Hello there!'
and apparently 2 single quotes serves the same purpose as (“”)
I have also noticed that text inside it cannot be concatenated with the formal method “…”.
Possibly because single quotes serve the same purpose as (" ") The parenthesis close the string container.
Questions: What are the advantages of ’ ’ over (“”) if there is any? What is a good example with the usage of ’ '? When exactly am I supposed to use it?
A good usage of a string.
Whenever you’re using strings use "" , '' or [[]] for multiline strings - you don’t have other options to define strings simply.
Electro mentioned multiline strings, which are basically strings that allow you to have the string expand more than a single line.
local multiStr = [[
hi
what's up?
]] --this is actually valid
--there is also a weird thing where you can add a = or more between the two [ and it's also valid
local multiStr = [=[
hi
what's up?
]=]