Getting started with Lua (Part 3)

Note : Click here for Part 1 and Part 2

In this piece we will cover the simplest programming construct; a conditional statement and also get introduced to some core concepts in Lua.

  1. if-else condition

2. if -else if-else conditional blocks

if-else

The basic syntax for if-else and if-else conditional blocks are as shown below

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Lars Nielsen

Lars Nielsen

Making ML and AI available to everyone. One commit at a time. | Quantitative programming | Python | Arduino | Comp Vision | pythoslabs@gmail.com / @PythosL