Write a Lua code snippet that demonstrates the usage of a conditional statement (if-else) to perform a specific action based on a given condition.
```
lua`-- Let's assume we have a variable representing a person's age
local age = 25
-- Now, we can use a conditional statement (if-else) to perform different actions based on the age value
if age >= 18 then
print("You are an adult.") -- If the age is 18 or higher, this block of code will execute
else
print("You are a minor.") -- If the age is below 18, this block of code will execute
end`
```
In the code snippet above, we start by defining a local variable `age` and assigning it a value of 25. The conditional statement `if age >= 18 then` checks if the value of `age` is greater than or equal to 18. If the condition evaluates to true, the code block within the `if` statement executes, and the message "You are an adult." is printed to the console.
If the condition is false, indicating that the age is below 18, the code block within the `else` statement executes, and the message "You are a minor." is printed to the console.
This example demonstrates how a conditional statement in Lua allows us to perform different actions based on the outcome of a condition. By using `if-else` statements, we can create dynamic and responsive behavior in our Lua programs.