---
title: "Discussion on \"Conditional - If, Else if, Else\" | Hashnode"
description: "Discussion on \"Conditional - If, Else if, Else\". Conditional - If, Else if, Else\nHere's an example of using if and else\npackage main\n\nimport (\n    \"fmt\"\n)\n\nfunc main() {\n    x := 42\n\n    if x == 40 {\n        fmt.Println(\"Our value was 40\")\n    } else {\n        fmt.Println(\"Our value was not 40\")\n  ..."
url: "https://hashnode.com/posts/conditional-if-else-if-else--deleted/62811d89bc9305ec39365442"
---

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

Discussion

# [Conditional - If, Else if, Else](https://blog.cloudnativefolks.org/conditional-if-else-if-else--deleted?utm_source=hashnode&utm_medium=feed)

Conditional - If, Else if, Else Here's an example of using if and else package main import ( "fmt" ) func main() { x := 42 if x == 40 { fmt.Println("Our value was 40") } else { fmt.Println("Our value was not 40") ...

May 15, 2022 · 1 min read · blog.cloudnativefolks.org  
Read the article

-   [#go](https://hashnode.com/tag/go)

## Written by

[Sangam Biradar](https://hashnode.com/@sangambiradar)

@sangambiradar · India

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

AI Security

DevRel at StackGen | Formerly at Deepfence ,Tenable , Accurics | AWS Community Builder also Docker Community Award Winner at Dockercon2020 | CyberSecurity Innovator of Year 2023 award by Bsides Bangalore | Docker/HashiCorp Meetup Organiser Bangalore &amp; Co-Author of Learn Lightweight Kubernetes with k3s (2019) , Packt Publication &amp; also run Non Profit CloudNativeFolks / CloudSecCorner Community To Empower Free Education reach out me twitterhttps://twitter.com/sangamtwts or just follow on GitHub -&gt; https://github.com/sangam14 for Valuable Resources

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
