Rust Tutorial

Rust If...Else

Conditional Statements

Use conditions to run different code paths based on logical tests.

if score >= 90 { println!("A"); }
Try it Yourself
Run this RUST example in your local environment or course sandbox.