Chapter 2: Exploring Lua Basics
Downloads
This chapter does not have any code to download
Table of Contents
- Chapter 2: Exploring Lua Basics - 13
- Downloading and Installing Lua - 14
- Downloading and Installing WowLua - 14
- Using Lua on the Web - 15
- Downloading and Installing a Lua Interpreter - 16
- Microsoft Windows - 16
- Mac OS X - 16
- Using the Lua Interpreter - 17
- Running Commands - 18
- Understanding Error Messages - 18
- Using History to Make Changes - 19
- Quitting the Interpreter - 19
- Microsoft Windows - 19
- Mac OS X - 19
- Working with Numbers - 20
- Basic Arithmetic Operations - 20
- Scientific Notation - 21
- Hexadecimal Notation - 21
- Understanding Floating Point - 22
- Understanding Values and Variables - 23
- Exploring Values and Their Types - 23
- Primitive Types - 23
- Using the type() Function - 23
- Using Variables - 24
- Valid Variable Names - 25
- Assigning Variables - 25
- Assigning Multiple Variables - 26
- Comparing Values - 26
- Exploring Values and Their Types - 23
- Working with Strings - 27
- Comparing Strings - 27
- Concatenating Multiple Strings - 28
- Converting Numbers to Strings - 28
- Converting Strings to Numbers - 29
- Quoting Strings - 29
- Single Quote (') - 29
- Double Quote (") - 30
- Bracket Quote ([[ ]]) - 30
- Escaping Special Characters - 31
- Getting a String's Length - 32
- Boolean Values and Operators - 33
- Using the and Operator - 33
- Using the or Operator - 34
- Negation Using the not Operator - 34
- Understanding the nil Value - 35
- Exploring Scope - 35
- Blocks - 36
- Chunks - 37
- Summary - 37
Errata
There is no errata listed for this chapter yet