---
title: "Discussion on \"Conditionals and Loops\" | Hashnode"
description: "Discussion on \"Conditionals and Loops\". Condition: It provides check for the statement.\n\nif-else statement:- It is used to check the condition, it checks the boolean condition True or false.\n\nSyntax:-\nif (boolean expression True or false) {\n    //Body\n} else {\n    //Do this\n}\n\nExample:-\npu..."
url: "https://hashnode.com/posts/conditionals-and-loops/66c9bf4266727ea9ee285c53"
---

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

Discussion

# [Conditionals and Loops](https://saswatpal.hashnode.dev/conditionals-and-loops?utm_source=hashnode&utm_medium=feed)

Condition: It provides check for the statement. if-else statement:- It is used to check the condition, it checks the boolean condition True or false. Syntax:- if (boolean expression True or false) { //Body } else { //Do this } Example:- pu...

Aug 24, 2024 · 4 min read · saswatpal.hashnode.dev  
Updated Sep 10, 2024  
Read the article

-   [#loops](https://hashnode.com/tag/loops)
-   [#conditionals](https://hashnode.com/tag/conditionals)
-   [#programming-languages](https://hashnode.com/tag/programming-languages)

## Written by

[Saswat Pal](https://hashnode.com/@saswat2002)

@saswat2002

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

Computer science student | Learning Java + DSA | Coding enthusiast

Hi there! I'm a computer science student with a keen interest in Java programming and Data Structures &amp; Algorithms. Currently, I am honing my skills in these areas and also familiar with C, C++. As an aspiring developer, I am always open to new opportunities and collaborations that allow me to learn and grow. Let's connect and create something great together!

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
