---
title: "Discussion on \"02. Flow Control\" | Hashnode"
description: "Discussion on \"02. Flow Control\". Conditional logic\nif - else\nif [ \"$rocket_status\" = \"Failed\" ]\nthen\n    rocket-debug \"$mission_name\"\nelif [ \"$rocket_status\" = \"Success\" ]\nthen\n    echo \"This is successful\"\nelse\n    echo \"The status is not failed or success\"\nfi\n\n\nIn if-else, we use ..."
url: "https://hashnode.com/posts/02-flow-control/67e2b9b8db34e24e69ac3ef1"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [02\. Flow Control](https://shell-scripting-basic.hashnode.dev/02-flow-control?utm_source=hashnode&utm_medium=feed)

Conditional logic if - else if \[ "$rocket\_status" = "Failed" \] then rocket-debug "$mission\_name" elif \[ "$rocket\_status" = "Success" \] then echo "This is successful" else echo "The status is not failed or success" fi In if-else, we use ...

Mar 25, 2025 · 5 min read · shell-scripting-basic.hashnode.dev  
Read the article

-   [#flow-control](https://hashnode.com/tag/flow-control)
-   [#loops-in-shell-script](https://hashnode.com/tag/loops-in-shell-script)

## Written by

[Arindam Baidya](https://hashnode.com/@ArindamB)

@ArindamB · Kolkata, India

  
[View profile](https://hashnode.com/@ArindamB)

Read-Learn-Apply

🚀 Aspiring DevOps &amp; Cloud Engineer | Passionate about Automation, CI/CD, Containers, and Cloud Infrastructure ☁️ I work with Docker, Kubernetes, Jenkins, Terraform, AWS (IAM &amp; S3), Linux, Shell Scripting, and Git to build efficient, scalable, and secure systems. Currently contributing to DevOps-driven projects at Assurex e-Consultant while continuously expanding my skills through hands-on cloud and automation projects. Sharing my learning journey, projects, and tutorials on DevOps, AWS, and cloud technologies to help others grow in their tech careers. 💡 Let’s learn, build, and innovate together!

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
