Test conditions with if/else expressions in Rust

Beginner
Student
Developer
Azure

Explore Rust compound data types like arrays and vectors. Discover how to use if/else statements to test conditions.

Learning objectives

In this module, you will:

  • Explore Rust compound data types: arrays and vectors
  • Discover how to use if/else statements to test conditions in a Rust program
  • Create, compile, and run a Rust program to process compound data and test values

Prerequisites

  • Have your Rust development environment already set up.
  • Know how to create, edit, and run Rust code by using Cargo or by working in the Rust playground.