Conditional Statements
If - Else Statements
Syntax
If Statement
It follows the same convention as other languages:
if <condition> {
<statements>
}Example of an if statement:
if 1 > 0 {
print("1 is greater than 0")
}If-Else Statement
if <condition> {
<statements>
} else {
<statements>
}Example of an if-else statement:
if 1 > 0 {
print("1 is greater than 0")
} else {
print("1 is not greater than 0")
}Currently Cyclone does not support else-if statements. For now you can use nested if-else statements. I'll add them in future but they are low-priority.
