Useful Links
Computer Science
Programming
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
Control Flow Structures
Conditional Statements
If-Then-Else Statements
Basic If Statement
If-Else Statement
If-Elseif-Else Statement
Nested Conditionals
Loops
While Loops
Basic While Loop Syntax
Loop Conditions
Infinite Loops
Repeat-Until Loops
Basic Repeat-Until Syntax
Condition Evaluation Timing
For Loops
Numeric For Loops
Basic Numeric For Loop
Step Values
Negative Steps
Generic For Loops
Iterator-Based For Loops
Common Iterator Functions
Loop Control Statements
Break Statement
Exiting Loops Early
Break in Nested Loops
Goto Statement and Labels
Label Definition
Goto Usage
Restrictions and Limitations
Previous
2. Lua Language Fundamentals
Go to top
Next
4. Functions