More on Variables

--[[Dealing with variables--]] --[[A variable is nothing but a name giving to a storage area that our program can manipulate from--]] --[[It can hold different types of from functions to tables--]] --[[There are 3 types of variables, Global, local and table--]] --[[When a variable is declared Global, it can be used anywhere in the program--]] …

Values

--Lvalues and Rvalues --Lvalue refers to an expression which implies the allocation of memory. Lvalue can be on the left-side as well as the right-side. --Rvalue refers to a data value that has an address location in the memory. It has no value and thus can only be on the right and never on the …

More Loops

--[This is an example of a repeat...until loop--] --[[Local variable--]] a = 10 repeat print("Value of a: %s") %a a = a + 1 until(a > 15) --We're going to learn about nested loops. In nested loops, you can use another loop inside another. For instance all the loops. The while-loop, for-loop, repeat..until-loop among others. …