Skip to content
MR
HTML
Tailwind
PYTHON
JAVA
Solidity
PHP
Lua
F#
Android
MYSQL
MONGODB
Examples
Examples
Lua Get Started
Install Lua
Lua Tutorial
Lua Introduction
Lua Overview
Lua Environment
Lua Syntax
Lua Variables
Lua Data Types
Lua Operators
Lua If-Else
Lua Loops
Lua Decision Making
Lua Functions
Lua Strings
Lua Arrays
Lua Iterators
Lua Tables
Lua Modules
Lua Metatables
Lua Coroutines
Lua File Io
Lua File Write
Lua Error Handling
Lua Debugging
Lua Garbage Collection
Lua Object Oriented
Lua Web Programming
Lua SQL Access
Lua Game Programing
Lua Standard Libraries
Lua Math Library
Lua Operating System Facilities
Learn Lua - Lua Tutorials
Search
Lua Introduction
Lua History
Lua Features
Lua Example code
Lua Implementation
Lua Data Types
Read More
Install Lua - Get Started
Install Lua
Install Lua on Windows
Install Lua on Linux
Install Lua Mac OS
Local Environment Setup:
Read More
Lua Syntax
Lua Tokens
Lua Syntax - Comments
Lua Identifiers
Lua Keywords
Whitespaces
Read More
Lua Variables
Lua Variable Types
Lua Variable Definitions
Declare Variable
Assign Multiple Variables
Left And Right Values
Read More
Lua Data Types
Lua Data Types
Type Function
Read More
Lua Operators
Lua Arithmetic Operators
Lua Relational Operators
Lua Logical Operators
Lua Bitwise Operators
String Operators
Read More
Lua Loops
Lua Loops
While Loop In Lua
Repeat-Until Loop
For loop
Numeric for loop
Read More
Lua If Else And Elseif Statements
Lua if Statement
Lua If else Statement
Lua elseif Statement
Syntax
Syntax
Read More
Lua Functions
Lua Functions Syntax
Create A Function
Define A Function
Assign and Pass Functions
Function and Variable Argument
Read More
Lua Strings
Lua Strings Properties
Escape Characters
Lua String Methods
String.upper(str)
string.lower(str)
Read More
Lua Arrays
Lua Array Creation
Accessing Elements In An Array
Add Element To Array
Iterate Over Array
Multidimensional Arrays
Read More
Lua Iterators
Lua Iterators Stateless
ipairs()
pairs()
next()
string.gmatch()
Read More
Lua Tables
Lua Tables - what are they?
Creating Lua Tables
Removing Reference
Garbage Collection
Lua Table Methods
Read More
Lua Modules
Lua Module - Create One
How to Use a Lua Module?
Best Practices for Lua Modules
Benefits of Using Lua Modules
Read More
Lua Metatables
Lua Metatables - What are they?
Setmetatable(table,metatable)
Getmetatable(table)
Lua Meta Methods
__index
Read More
Lua Coroutines
What are Lua Coroutines?
Lua Coroutine Functions
Read More
Lua File Write
Open A File
Lua File Read
Lua File Write
Close A File
Read More
Lua Error Handling
Lua Syntax errors
Lua Run Time Errors
Assert and Error Functions
Lua pcall()
Lua xpcall()
Read More
Lua Debugging
Lua Print() Statements
Lua Debugging Library
Lua Debugging Types
Best Practices for Lua Debugging
Command Line Debugging
Read More
Lua Garbage Collection
What is Garbage Collection?
How does Lua Garbage Collection work?
Garbage Collector Functions:
Lua Garbage Collection Best Practices
Example Explaination
Read More
Lua Web Programming
Lua Web Programming Orbit
Features of Orbit Framework
Orbit Setup - Install Orbit
Create a project
Configure The Project
Read More
LuaSQL Access
LuaSQL
LuaSQL Setup
SELECT Statement
UPDATE Statement
INSERT Statement
Read More
Lua Game Programing
Lua Game Engines
Lua Game Logics
Lua Game Objects
Debugging Lua Scripts
Read More
Lua Math Library
Basic Arithmetic Functions
Trigonometry Functions
Logarithmic Functions
Exponential Functions
Other Useful Functions
Read More
Lua Operating System Facilities
Read More