Else
We'll cover the following...
I want a program that says “it’s hot” if it’s hot, and “it’s not hot” if it’s not hot. We can do this with two if
s with opposite conditions:
Press + to interact
fn main() {let is_hot = false;if is_hot {println!("It's hot!");}if !is_hot {println!("It's not hot!");}}
But that ...