Rust Basics Series #6 will teach you how to use conditional statements.
https://itsfoss.com/rust-if-else/
Rust Basics Series #6: Using If Else
You can control the flow of your program by using conditional statements. Learn to use if-else in Rust.Pratham Patel (It's FOSS)