Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

CodeSignal

Mastering Control Structures in Lua

via CodeSignal

Overview

Deepen your understanding of decision-making processes in Lua with this course dedicated to mastering control structures. Learn to navigate complex decision paths and handle a variety of conditions using if, else, and elseif clauses. Explore how to leverage tables in tandem with conditional logic to enhance the functionality of your programs.

Syllabus

  • Unit 1: Making Decisions with If Statements
    • Change What the Code Checks For
    • Change the Destination Check
    • Spot the If Statement Bug
    • Complete the Hotel Reservation Check
    • Destination Check with If Statements
    • Write Your Own Boarding Pass Check
    • Try a Different Comparison Operator
  • Unit 2: Handling Multiple Conditions
    • Adjust the Age Group Logic
    • Fix the Age Group Conditions
    • Complete the Insurance Plan Logic
    • Write Your Own Age Group Logic
  • Unit 3: Nested Conditional Logic
    • Change the Budget Condition
    • Fix the Nested Condition Bug
    • Nested Checks in Action
    • Nested Decisions from the Ground Up
  • Unit 4: Using Logical Operators
    • Try a Different Logical Operator
    • Spot the Logic Error
    • Check for Available Tickets
    • Logical Operators in Action
  • Unit 5: Combining Conditionals and Tables
    • Update the If Condition Logic
    • Check If You Have Visited
    • Complete the Destination Check Logic
    • Check Destinations with Tables and If

Reviews

5.0 rating, based on 1 Class Central review

Start your review of Mastering Control Structures in Lua

  • It might feel little intimidating at a first glance but one tip I'd share is, just save the example code in txt files before successful submission. Enjoyed difficult journey all the way to the end. It has been an insightful journey. Loved that certificate of completion at the end.

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.