EN | DE

Stage 3.2: if / else

In this chapter let's talk about basic control flow methods in Rust. If you are familiar with C based languages you'll feel right at home and maybe enjoy a surprise or two.

Conditions don't have parentheses! Did we ever really need them? Our logic now looks nice and clean.

All your usual relational and logical operators still work: ==, !=, <, >, <=, >=, !, ||, &&.

Further information: