---
title: "Discussion on \"Conditional Statements\" | Hashnode"
description: "Discussion on \"Conditional Statements\". Sometimes you have to take actions based on the user's input or maybe you have to run a block of code based on conditions, in that case, we can use conditional statements.\nThere are 4 types of conditional statements :\nif statement\nit is used to execu..."
url: "https://hashnode.com/posts/conditional-statements/63f22964f8fd59d57cfbbcae"
---

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

Discussion

# [Conditional Statements](https://paarthmane.hashnode.dev/conditional-statements?utm_source=hashnode&utm_medium=feed)

Sometimes you have to take actions based on the user's input or maybe you have to run a block of code based on conditions, in that case, we can use conditional statements. There are 4 types of conditional statements : if statement it is used to execu...

Feb 19, 2023 · 2 min read · paarthmane.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#conditional-statement](https://hashnode.com/tag/conditional-statement)
-   [#conditional](https://hashnode.com/tag/conditional)

## Written by

[Parth](https://hashnode.com/@paarthmane)

@paarthmane

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

I'm a amateur web developer who knows little bit about programming !!

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
