String (type)
From ComputerCraft Wiki
Revision as of 13:31, 17 April 2013 by Unit158 (Talk | contribs) (Added how to form a string and two small examples)
| This page is a stub. Please help us by expanding it.
|
A String represents an array of characters. For example, this text can be called a string. The default String functions in Lua 5.1, and the Textutils API, provid useful methods for manipulating strings.
For a more in-depth and concise explanation of types, please consolidate with the Lua 5.1 Official Manual.
If you do not feel like viewing the Programming in Lua article, you can make a string by using quotation marks.
Example
string = "Hello" print(string)
io.read() = variable -- variable is a string