How to Get Started with Lua

Know that Lua has a strict syntax, or format, the way the program is set up., Know that the computer runs through the program line by line, starting from the top and working it's way all the way down to the bottom, unless told to go to another...

9 Steps 1 min read Medium

Step-by-Step Guide

  1. Step 1: Know that Lua has a strict syntax

    You must have a different command per line, and in those commands, if you get even a single dot wrong, the whole program will crash.

    We will learn more about commands later in the tutorial. , It is helpful to know this when you are bugfixing, meaning going through and fixing mistakes in the code.

    They can simply be typos, or complicated things. , A variable can be called anything, except for a number. , Just type what you want the variable to be called, then an = sign, then what you want the variable to store.
  2. Step 2: or format

  3. Step 3: the way the program is set up.

  4. Step 4: Know that the computer runs through the program line by line

  5. Step 5: starting from the top and working it's way all the way down to the bottom

  6. Step 6: unless told to go to another line.

  7. Step 7: Know that Lua has variables

  8. Step 8: an element which is extremely important.

  9. Step 9: Make a variable.

Detailed Guide

You must have a different command per line, and in those commands, if you get even a single dot wrong, the whole program will crash.

We will learn more about commands later in the tutorial. , It is helpful to know this when you are bugfixing, meaning going through and fixing mistakes in the code.

They can simply be typos, or complicated things. , A variable can be called anything, except for a number. , Just type what you want the variable to be called, then an = sign, then what you want the variable to store.

About the Author

T

Timothy Ramirez

Specializes in breaking down complex lifestyle topics into simple steps.

39 articles
View all articles

Rate This Guide

--
Loading...
5
0
4
0
3
0
2
0
1
0

How helpful was this guide? Click to rate: