if can only execute if
condition is true
if example
if true{
print(“hi”)
}
if password example
var password="hi"
if password=="hi"{
print("hello")
}we use {} for
to mark beginning of line depending on condition
else
executes if condition is false
else example
var password="hi"
if password=="mary"{
print("hello")
}else{
print("pop")
}else if
to add extra conditions
else if example
var month="jan"
if month=="j"{
print("0i")
}else if month=="jan"{
print("kl")
}what needs to be last statement
else