gmatch
|
  |
| Joined: 21 May 2014 |
| Total Posts: 1173 |
|
|
| 09 Jun 2016 11:34 PM |
What's the diffrent from an apostrophe and quotation marks?
Example:
local string = 'Hello'
local string2 = "Greetings"
|
|
|
| Report Abuse |
|
|
|
| 09 Jun 2016 11:37 PM |
one has 2 dots one has only 1
r+://393244197r+://393244224r+://393244262 |
|
|
| Report Abuse |
|
|
|
| 09 Jun 2016 11:37 PM |
As far I know its just quicker though its better imo to use the second one as if u try wanted to say:
Bob's house
if you were using "Hello' it would then stop between b and s as there is a ' there.
|
|
|
| Report Abuse |
|
|
|
| 09 Jun 2016 11:39 PM |
just use tostring
r+://393244197r+://393244224r+://393244262 |
|
|
| Report Abuse |
|
|
|
| 10 Jun 2016 12:19 AM |
Just different notation I believe You can also use double square brackets for multiple line strings
local s = [[ Is this the real life Is this just fantasy ]]
print(s) |
|
|
| Report Abuse |
|
|
DevVince
|
  |
| Joined: 08 Nov 2008 |
| Total Posts: 9245 |
|
|
| 10 Jun 2016 12:45 AM |
| I like using ' instead of " because it's much quicker and it looks cleaner I only use " when I have use with something like this: "It's an apple." |
|
|
| Report Abuse |
|
|
Ozmozian
|
  |
| Joined: 26 Mar 2016 |
| Total Posts: 358 |
|
|
| 10 Jun 2016 01:06 AM |
Has anyone noticed that 1) he spelled different wrong 2) quotation marks and apostrophes aren't even punctuation marks?!
|
|
|
| Report Abuse |
|
|
Grevok
|
  |
| Joined: 07 Jul 2013 |
| Total Posts: 1652 |
|
| |
|
Grevok
|
  |
| Joined: 07 Jul 2013 |
| Total Posts: 1652 |
|
|
| 10 Jun 2016 01:28 AM |
| In JavaScript however, not using a "hi" or a 'bye' can screw up your whole code |
|
|
| Report Abuse |
|
|