Conditions
In Umbra, conditional logic is handled using the if, else if, and else constructs, which allow branching based on bool expressions. The basic structure begins with if, followed by a condition enclosed in parentheses and the block of code to execute if the condition is true:
You can add an else if block to check additional conditions if the first one is false:
conditions.md
else if false {
  # Code executes if the first condition is false, but this one is true
}
Finally, an optional else block can be added to handle all cases where none of the previous conditions are met:
This structure allows for clean and readable conditional branching, enabling complex decision-making within the code.