Bash Tutorial

Bash If...Else

Conditional Statements

Use conditions to run different code paths based on logical tests.

if [ $score -ge 90 ]; then echo "A"; fi
Try it Yourself
Run this BASH example in your local environment or course sandbox.