Conditional: if
- if
fn main() { let x = 23; let y = 32; if x < y { println!("x is smaller than y"); } }
x is smaller than y
Press ← or → to navigate between chapters
Press S or / to search in the book
Press ? to show this help
Press Esc to hide this help
fn main() { let x = 23; let y = 32; if x < y { println!("x is smaller than y"); } }
x is smaller than y