-- Chapter 16 example: combining conditions. local level = 12 local has_key = true if level >= 10 and has_key then print("You can enter the dungeon.") end if level < 10 or not has_key then print("You are blocked.") end