Difference between revisions of "Concatenation"

From ComputerCraft Wiki
Jump to: navigation, search
(Fixed spelling.)
m (Fixed grammatical error)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
Content missing.
+
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.


Grid paper.png  Example
Concatenating strings.
Code
print("Hello ".."World".."!")
Output Hello world!