---
title: "Discussion on \"Booleans and nil in Ruby on Rails\" | Hashnode"
description: "Discussion on \"Booleans and nil in Ruby on Rails\". Today, we will learn about boolean and nil values in Ruby on Rails. Lets start with what these are.\nWhat is a boolean? \n\nA boolean value is used to represent whether the condition or the logic is true or false. In Ruby, we have boolean objects as \"tr..."
url: "https://hashnode.com/posts/booleans-and-nil-in-ruby-on-rails/632b421dc63fa0e8e95a83c0"
---

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

Discussion

# [Booleans and nil in Ruby on Rails](https://developerstack.hashnode.dev/booleans-and-nil-in-ruby-on-rails?utm_source=hashnode&utm_medium=feed)

Today, we will learn about boolean and nil values in Ruby on Rails. Lets start with what these are. What is a boolean? A boolean value is used to represent whether the condition or the logic is true or false. In Ruby, we have boolean objects as "tr...

Sep 21, 2022 · 2 min read · developerstack.hashnode.dev  
Read the article

-   [#ruby](https://hashnode.com/tag/ruby)
-   [#ruby-on-rails](https://hashnode.com/tag/ruby-on-rails)
-   [#boolean](https://hashnode.com/tag/boolean)
-   [#beginners](https://hashnode.com/tag/beginners)
-   [#learning](https://hashnode.com/tag/learning)

## Written by

[Sanima Shrestha](https://hashnode.com/@Syslin)

@Syslin · Nepal

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

Developer

I am a Ruby on Rails developer from Nepal.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
