Branching in Bash
[ ] is the legacy test command. [[ ]] is Bash-only and handles quoting more safely. Compare numbers with -gt, -eq; strings with =.
Best practice: Quote variables inside tests: [ "$n" -gt 10 ].
Output
Press Run to execute your code.