UsefulLinks
1. Introduction to Lua
2. Lua Language Fundamentals
3. Control Flow Structures
4. Functions
5. Tables: Lua's Primary Data Structure
6. Metatables and Metamethods
7. Modules and Package Management
8. Error Handling and Debugging
9. Advanced Language Features
10. Object-Oriented Programming Patterns
11. Standard Library Overview
12. C API Integration
13. Lua Ecosystem and Tools
  1. Computer Science
  2. Programming
  3. By Language

Lua Programming

1. Introduction to Lua
2. Lua Language Fundamentals
3. Control Flow Structures
4. Functions
5. Tables: Lua's Primary Data Structure
6. Metatables and Metamethods
7. Modules and Package Management
8. Error Handling and Debugging
9. Advanced Language Features
10. Object-Oriented Programming Patterns
11. Standard Library Overview
12. C API Integration
13. Lua Ecosystem and Tools
3.
Control Flow Structures
3.1.
Conditional Statements
3.1.1.
If-Then-Else Statements
3.1.1.1.
Basic If Statement
3.1.1.2.
If-Else Statement
3.1.1.3.
If-Elseif-Else Statement
3.1.1.4.
Nested Conditionals
3.2.
Loops
3.2.1.
While Loops
3.2.1.1.
Basic While Loop Syntax
3.2.1.2.
Loop Conditions
3.2.1.3.
Infinite Loops
3.2.2.
Repeat-Until Loops
3.2.2.1.
Basic Repeat-Until Syntax
3.2.2.2.
Condition Evaluation Timing
3.2.3.
For Loops
3.2.3.1.
Numeric For Loops
3.2.3.1.1.
Basic Numeric For Loop
3.2.3.1.2.
Step Values
3.2.3.1.3.
Negative Steps
3.2.3.2.
Generic For Loops
3.2.3.2.1.
Iterator-Based For Loops
3.2.3.2.2.
Common Iterator Functions
3.3.
Loop Control Statements
3.3.1.
Break Statement
3.3.1.1.
Exiting Loops Early
3.3.1.2.
Break in Nested Loops
3.3.2.
Goto Statement and Labels
3.3.2.1.
Label Definition
3.3.2.2.
Goto Usage
3.3.2.3.
Restrictions and Limitations

Previous

2. Lua Language Fundamentals

Go to top

Next

4. Functions

About•Terms of Service•Privacy Policy•
Bluesky•X.com

© 2025 UsefulLinks. All rights reserved.