Maths in Lua

“Lua Tutorial #11 – How To Do Arithmetic Operations In Lua”

Arithmetic operations are essential in programming, as they allow us to perform various calculations and manipulations of numerical data. In Lua, there are several arithmetic operations available for use, including addition, subtraction, multiplication, division, and modulus. Addition The addition operator in Lua is represented by the + symbol. It is used to add two or […]

Logical Operators in Lua

Lua Tutorial #12 – How To Use Logical Operators in Lua

Logical operator are essential components of programming languages, including Lua. Logical operators allow programmers to compare and manipulate the Boolean values (true/false) of different expressions in their code. In this article, we’ll explore the logical operators available in Lua, including AND, OR, and NOT, and provide examples of how to use them. AND Operators AND […]

control structures in lua

Lua Tutorial #13 – How To Use Control Stuctures

Lua, like any other programming language, has several control structures that allow the program to execute certain statements based on certain conditions. In this article, we’ll take a look at the control structures in Lua and how to use them. Conditional statements are the most common type of control structure in Lua. They allow the […]

function in lua

Functions Lua Tutorial #14 – How To Use Functions

Functions are an essential part of programming, allowing developers to write reusable code that can be executed multiple times with different arguments. In Lua, functions are first-class citizens, meaning they can be stored in variables, passed as arguments to other functions, and returned from functions. To create a function in Lua, you use the function […]