the code on page 31 at the top is not correct, is it?
It must be like this:
fun main(args: Array) {
val name = “Madrigal”
var healthPoints = 3
if (healthPoints in 15..74) {//Triggered for any value of 15-74
println(name + " looks pretty hurt.")
} else if(healthPoints in 75..89) {
println(name + " has some minor wounds.")
} else if(healthPoints in 90..99){
println(name + " has a few scratches.")
} else if(healthPoints == 100){
println(name + " is in excellent condition!")
} else {//geactiveerd voor waarden 0-14
println("$name is in awful condition.")
}
}