If Statements
(note): current documentation is subject to change.
If statements take Comparison Operators and/or Logical Operators..
var alive = true
if alive || !alive {
console.log("...")
}
If statements can be chained together with elsif and else..
var age = 22
if age == 16 && age < 18 {
console.log("You can drive!")
} elsif age >= 18 {
console.log("You can vote!")
} else {
console.log("Have fun")
}
However, you can't have an elsif after an else because that will throw an error in Feation..
Updated less than a minute ago
