mirror of
https://github.com/google/comprehensive-rust.git
synced 2025-06-08 02:26:14 +02:00
7 lines
260 B
Markdown
7 lines
260 B
Markdown
|
# Control Flow
|
||
|
|
||
|
As we have seen, `if` is an expression in Rust. It is used to conditionally
|
||
|
evaluate one of two blocks, but the blocks can have a value which then becomes
|
||
|
the value of the `if` expression. Other control flow expressions work similarly
|
||
|
in Rust.
|