local score = 10
if score >= 10 then
print("Ты победил!")
endlocal score = 5
if score >= 10 then
print("Ты победил!")
else
print("Попробуй ещё раз!")
endlocal rain = true
if rain == true then
print("Берём зонт")
else
print("Идём без зонта")
endlocal hasKey = true
if hasKey then
print("Дверь открыта")
else
print("Найди ключ!")
end