---
title: "Discussion on \"Guard Clauses vs. Nested Conditionals\" | Hashnode"
description: "Discussion on \"Guard Clauses vs. Nested Conditionals\". An explanation of Ruby guard clauses how to use them as an alternative to nested if statements"
url: "https://hashnode.com/posts/guard-clauses-vs-nested-conditionals/60bb09d7e36d51141c95a465"
---

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

Discussion

# [Guard Clauses vs. Nested Conditionals](https://anthonygharvey.com/guard-clauses-vs-nested-conditionals?utm_source=hashnode&utm_medium=feed)

An explanation of Ruby guard clauses how to use them as an alternative to nested if statements

Jul 28, 2019 · 2 min read · anthonygharvey.com  
Read the article

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

## Written by

[Anthony Harvey](https://hashnode.com/@anthonyharvey)

@anthonyharvey

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

Software Engineer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
