Lua – Module

  • Post author:
  • Post category:Lua
  • Post comments:0 Comments

What is a Module? In this chapter we will discuss about Lua - Module. Module is like a library that can be loaded using require and has a single global name containing…

Continue ReadingLua – Module

Lua – Tables

  • Post author:
  • Post category:Lua
  • Post comments:0 Comments

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…

Continue ReadingLua – Tables

Lua – Iterator

  • Post author:
  • Post category:Lua
  • Post comments:1 Comment

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…

Continue ReadingLua – Iterator

Lua – Arrays

  • Post author:
  • Post category:Lua
  • Post comments:1 Comment

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…

Continue ReadingLua – Arrays

Lua – String

  • Post author:
  • Post category:Lua
  • Post comments:0 Comments

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…

Continue ReadingLua – String

Lua – Loops

  • Post author:
  • Post category:Lua
  • Post comments:1 Comment

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…

Continue ReadingLua – Loops

Lua – Operators

  • Post author:
  • Post category:Lua
  • Post comments:0 Comments

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…

Continue ReadingLua – Operators