Ravindra BagaleCourses & study guides मराठी Track your progress

Ravi Sir's Cards › AWS

if/elif vs case

What is a VPC: your own private network inside one AWS Region, example ThreeTierVpc 10.0.0.0/16.

if/elif vs case: Any tests, any mix.; One value, many patterns.
if/elif vs case · Download PNG
Read card text

What this card says

Choose

if/elif

Any tests, any mix.

case

One value, many patterns.

Key points

Long chains get messy.

Clean menus.

Example

if [[ -z $1 ]]; then

Use when

Ranges, files, numbers.

start/stop/status.

See all AWS revision cards