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

How do I add two strings together?

Asked by
3rdblox 30
10 years ago

I have a very simple problem: how do I add two strings together? So if I added "over " and "there" together I would get "over there"?

0
For future reference, the technical term is "concatenation"! BlueTaslem 18071 — 10y

2 answers

Log in to vote
2
Answered by
Maxomega3 106
10 years ago

Using the .. operator.


string1 = "Hello " string2 = "World!" print (string1..string2)

Hello World!

Ad
Log in to vote
0
Answered by 10 years ago

..

honestly

..

"over" .. " there"

"over there"

print("over".." there")

over there

Answer this question