Getting started with Lua (Part 3)
Basic Programming Constructs — Level 2 (conditional statements)
In this piece we will cover the simplest programming construct; a conditional statement and also get introduced to some core concepts in Lua.
- if-else condition
2. if -else if-else conditional blocks
The basic syntax for if-else and
if-else conditional blocks are as shown below