---
title: "Discussion on \"Conditionals in Go\" | Hashnode"
description: "Discussion on \"Conditionals in Go\". Conditional constructs are very useful in programming as they allow complex logic to be implemented within code. In this blog post, I will go over the methods on how to execute a code block conditionally.\nThe first method is to use an if statement. T..."
url: "https://hashnode.com/posts/conditionals-in-go/66bf8ba63405d2895d867bbd"
---

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

Discussion

# [Conditionals in Go](https://blog.gotechwithalissa.com/conditionals-in-go?utm_source=hashnode&utm_medium=feed)

Conditional constructs are very useful in programming as they allow complex logic to be implemented within code. In this blog post, I will go over the methods on how to execute a code block conditionally. The first method is to use an if statement. T...

Aug 16, 2024 · 3 min read · blog.gotechwithalissa.com  
Read the article

-   [#go-short-variable-declaration](https://hashnode.com/tag/go-short-variable-declaration)
-   [#golang](https://hashnode.com/tag/golang)
-   [#conditionals](https://hashnode.com/tag/conditionals)
-   [#ifelsestatement](https://hashnode.com/tag/ifelsestatement)

## Written by

[Alissa Lozhkin](https://hashnode.com/@AlissaL)

@AlissaL

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

Computer Science, Math, and Psychology student at UofT

My name is Alissa and I am a software developer at RBC Capital Markets! I studied computer science and math at the University of Toronto and I am very interested in learning about new technologies! Get in touch with me on LinkedIn: https://www.linkedin.com/in/alissa-lozhkin

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
