---
title: "Discussion on \"if Statements\" | Hashnode"
description: "Discussion on \"if Statements\". #! /bin/bash\n#Integers comparison operators\n#String comparison #{ { = , == , != } ..... [ \"$a\" = \"$b\" ] #{ {< , > , -z {for null string , #zero-length string } ..... [[ \"$a\" < \"$b\" ]]\ncount=10\nif [ $count -eq 10 ]\nthen\necho \"Number Equal to 10 \"\nfi\ni..."
url: "https://hashnode.com/posts/if-statements/64455daef8c2238cfffbb368"
---

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

Discussion

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

#! /bin/bash #Integers comparison operators #String comparison #{ { = , == , != } ..... \[ "$a" = "$b" \] #{ {< , > , -z {for null string , #zero-length string } ..... \[\[ "$a" < "$b" \]\] count=10 if \[ $count -eq 10 \] then echo "Number Equal to 10 " fi i...

Apr 23, 2023 · 1 min read · cosmicomkar.hashnode.dev  
Read the article

-   [#linux](https://hashnode.com/tag/linux)
-   [#linux-for-beginners](https://hashnode.com/tag/linux-for-beginners)
-   [#linux-bash](https://hashnode.com/tag/linux-bash)
-   [#linux-commands](https://hashnode.com/tag/linux-commands)
-   [#linuxcommand](https://hashnode.com/tag/linuxcommand)

## Written by

[Omkar Venkatrao Punjaji](https://hashnode.com/@CosmicOmkar)

@CosmicOmkar · india

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

open source DevOps , Linux , Data Structure , c, c++, python

Linux , Devops , c , c++ , python

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
