Difference between revisions of "Concatenation"
From ComputerCraft Wiki
(Fixed spelling.) |
Smiley43210 (Talk | contribs) m (Fixed grammatical error) |
||
| (One intermediate revision by one other user not shown) | |||
| Line 1: | Line 1: | ||
| − | + | Concatenation is the process in which you combine one or more strings. | |
| + | |||
| + | To concatenate a string you use two periods. | ||
| + | |||
| + | {{Example | ||
| + | |desc=Concatenating strings. | ||
| + | |code=print("Hello ".."World".."!") | ||
| + | |output=Hello world! | ||
| + | }} | ||
| + | [[Category:Tutorials]] | ||
Latest revision as of 21:02, 11 April 2013
Concatenation is the process in which you combine one or more strings.
To concatenate a string you use two periods.
| Concatenating strings. | |
| Code |
print("Hello ".."World".."!")
|
| Output | Hello world! |