Learn Lua
Start programming with Lua, the small scripting language behind game add-ons, editor plugins and database scripts. Print output, work with values and variables, make decisions and write your own functions.
- Beginner level
- 5 modules
- 29 lessons
- 107 tasks and questions
Syllabus
01Getting StartedMeet Lua, run your first program, control the order of your output and leave notes for humans with comments.5 lessons
02Data Types and OperatorsLearn the basic kinds of values Lua works with, how to ask a value for its type, and how to calculate with arithmetic operators.5 lessons
03VariablesStore values under names, update them as your program runs, join strings together and keep variables local to the code that needs them.6 lessons
04Conditionals and LogicLet your programs make decisions with if, elseif and else, compare values, combine conditions with and, or and not, and learn which values Lua treats as true.6 lessons
05FunctionsPackage code into reusable functions, pass them information through parameters, get results back with return and keep variables local to where they belong.7 lessons