Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New entry added at terms/conditional-statements.md/content/command-li… #6299

Conversation

meigensmartsolutions
Copy link
Contributor

…ne/concepts/bash/terms/conditional-statements/conditional-statements.md

Description

This entry introduces conditional statements in Bash scripting, explaining their importance in controlling the flow of execution. It covers the syntax of if, elif, else, and fi, along with various conditions for numeric comparisons, string comparisons, and file conditions. The entry also provides a practical example demonstrating how conditional statements can be used in a Bash script.

Conditional statements are a fundamental part of Bash scripting, allowing scripts to make decisions dynamically based on user input, file existence, or variable values. Understanding these statements helps developers automate tasks, create interactive scripts, and implement logic-driven operations in the command line. This entry provides a clear, structured guide for learners to grasp and apply conditional statements effectively.

Issue Solved

Closes #6284

Type of Change

  • Adding a new entry

Checklist

  • All writings are my own.
  • My entry follows the Codecademy Docs style guide.
  • My changes generate no new warnings.
  • [x ] I have performed a self-review of my own writing and code.
  • [x ] I have checked my entry and corrected any misspellings.
  • I have made corresponding changes to the documentation if needed.
  • I have confirmed my changes are not being pushed from my forked main branch.
  • I have confirmed that I'm pushing from a new branch named after the changes I'm making.
  • I have linked any issues that are relevant to this PR in the Issues Solved section.

…ne/concepts/bash/terms/conditional-statements/conditional-statements.md
@CLAassistant
Copy link

CLAassistant commented Mar 7, 2025

CLA assistant check
All committers have signed the CLA.

@Sriparno08 Sriparno08 self-assigned this Mar 7, 2025
@Sriparno08 Sriparno08 added new entry New entry or entries status: under review Issue or PR is currently being reviewed command line Command Line entries labels Mar 7, 2025
@Sriparno08
Copy link
Collaborator

Hey @meigensmartsolutions, please sign the CLA so that we can merge the PR.

Copy link
Collaborator

@Sriparno08 Sriparno08 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for contributing to Codecademy Docs, @meigensmartsolutions!

This entry looks good for a second round of review.

@dakshdeepHERE dakshdeepHERE self-assigned this Mar 11, 2025
@dakshdeepHERE dakshdeepHERE added status: under review Issue or PR is currently being reviewed and removed status: ready for next review labels Mar 11, 2025
Copy link
Collaborator

@dakshdeepHERE dakshdeepHERE left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to merge!

@dakshdeepHERE dakshdeepHERE merged commit 1670a0a into Codecademy:main Apr 7, 2025
7 checks passed
@dakshdeepHERE dakshdeepHERE added status: review 2️⃣ completed and removed status: under review Issue or PR is currently being reviewed labels Apr 7, 2025
Copy link

github-actions bot commented Apr 7, 2025

👋 @meigensmartsolutions
You have contributed to Codecademy Docs, and we would like to know more about you and your experience.
Please take a minute to fill out this four question survey to help us better understand Docs contributions and how we can improve the experience for you and our learners.
Thank you for your help!

🎉 Your contribution(s) can be seen here:

https://www.codecademy.com/resources/docs/command-line/bash/conditional-statements

Please note it may take a little while for changes to become visible.
If you're appearing as anonymous and want to be credited, visit the linked accounts page and ensure that your GitHub account is linked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Term Entry] Command line Bash: Conditional Statements
4 participants