Lua – Tables
Introduction Tables are the only data structure available in Lua that helps us create different types like arrays and dictionaries. Lua uses associative arrays and which can be indexed with…
Introduction Tables are the only data structure available in Lua that helps us create different types like arrays and dictionaries. Lua uses associative arrays and which can be indexed with…
Iterator is a construct that enables you to traverse through the elements of the so called collection or container. In Lua, these collections often refer to tables, which are used…
Arrays are ordered arrangement of objects, which may be a one-dimensional array containing a collection of rows or a multi-dimensional array containing multiple rows and columns. In Lua, arrays are…
In this chapter we will discuss about Lua - String. String is a sequence of characters as well as control characters like form feed. String can be initialized with three…
A function is a group of statements that together perform a task. You can divide up your code into separate functions. How you divide up your code among different functions…
In this chapter we will discuss about Lua - Decision Making. Decision making structures require that the programmer specifies one or more conditions to be evaluated or tested by the…
Here we discuss about Lua - Loops. There may be a situation when you need to execute a block of code several number of times. In general, statements are executed…
An operator is a symbol that tells the interpreter to perform specific mathematical or logical manipulations. Lua language is rich in built-in operators and provides the following type of operators…
In this topic we will discuss about Lua - Data Lua is a dynamically typed language, so the variables don't have types, only the values have types. Values can be…
A variable is nothing but a name given to a storage area that our programs can manipulate. It can hold different types of values including functions and tables. The name…