Loads of source codes to go through. Available at https://github.com/bnsoftwaresdev Please go through and download. We would be happy to hear from you. Continue reading Visit our Official github account for source codes.
It could not have got easier right? Download this app to learn how to code in your favorite scripting languages. https://goo.gl/U9gM89 Continue reading Download the official app from Playstore.
–[[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 … Continue reading More on Variables
— Variable definition: local a, b — Initialization a = 10 b = 30 print(“value of a:”, a) — value of a: 10 print(“value of b:”, b) –[[value of b: 30–]] — Swapping of variables b, a = a, b … Continue reading Variables
–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 … Continue reading Values
–Operators Precedence in Lua some operators are given higher precedence. For instance in Multiplication and addition. Multiplications comes first. For example x = 7 + 3 * 2. Here, x is not equal to 20 but 13. This is because … Continue reading Precedence in Operators
–Relational Operators –They are listed below == If A = B then it is true ~= If A is not equal B it is true > If A is greater than B it is true = Checks if A is … Continue reading Relational Operators
–[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 … Continue reading More Loops
–[[This is how comments are done in ‘lua’ programming language–]] –[[In Python we use the hash pound for commenting a line #. In Lua, its different–]] print (“Hello Dawn”) –[[This prints the word ‘Hello Dawn’–]] –[[You can either decide to … Continue reading Comments