Variables

Lua Variables Video Presentation

Lua Variables Presentation

Lua Data Types Video Presentation

Lua Data Types Presentation

Types

nil

the absence of data

Boolean

a value of true or false

number

a number can represent any real number: 0, -1, 1 or numbers with decimals

string

an array of characters

function

code that is referred to by a name and can be executed any time

table

a table contains information using key-value pairs

userdata

complex data structures defined in the C programming language

thread

threads can be used to execute code in parallel

Escape Characters

Escape Sequence

Meaning

\b

backspace

\f

formfeed

\n

newline

\r

carriage return

\t

tab

\v

vertical tab

\\

backslash

\"

double quote

\'

single quote

\

newline