Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUST

rust if condition

fn main() {
    let number = 3;

    if number < 5 {
        println!("condition was true");
    } else {
        println!("condition was false");
    }
}
Source by doc.rust-lang.org #
 
PREVIOUS NEXT
Tagged: #rust #condition
ADD COMMENT
Topic
Name
1+1 =