Title: Conditional Expression, Case Statement and Loops
Course: CIS 121: Linux/UNIX I: Fundamentals ~ For IGNITE Review > Section: Learning Modules

Conditional Expression

We can use a conditional statement to execute certain commands if a specified condition is at that moment true or false. For example:

Case Statement

The case statement can be used when one of several results are possible.

Loops

For Loops

A list of items can be processed using a for loop. For example:

While Loops

while loops run as long as a condition is true.