Conditionals
ToyLang supports a simple if-elif-else construct to handle conditional logic. The if block executes when the condition is true, while the elif blocks can be used to check additional conditions in sequence. If none of the above conditions are true, the else block will execute, providing a default action when all conditions fail. This allows for clear and easy branching of program logic based on different conditions.if (a > b) {
log("a is greater than a");
} elif (a < b) {
log("b is greater than a");
} else {
log("b is equal to a");
}