Tour of Rust Table of Contents

if/else

Code branching in Rust is not surprising.

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: ==, !=, <, >, <=, >=, !, ||, &&.