if/else

Note that the boolean condition does not have to be surrounded by parentheses.

fn main() {
	let conditional: i32 = 10;

	if conditional == 10 {
		println!("The value is 10");
	} else {
		println!("The value is not 10");
	}
}

Learn more: https://doc.rust-lang.org/stable/rust-by-example/flow_control/if_else.html