🤑 Join the Treehouse affiliate program and earn 25% recurring commission!

New No-Code Track! 🚀start learning today!

🌟 Dreaming of a bright future? 🎓 Ask about the Treehouse Scholarship program! 🚀

✨ Earn college credits in Cybersecurity, JS, HTML, CSS and Python

  • Treehouse Logo
  • Plans
    Chevron
    • For Individuals
    • For Businesses
    • For Schools
    • For Libraries
    • For Military
  • Library
    Chevron
    • All Courses
    • Tracks
    • College Credit
  • Techdegree
    Chevron
    • Overview
    • Front End Development
    • Full Stack JavaScript
    • Data Analysis
    • UX Design
    • Python
  • Community
    Chevron
    • Code Adventures
    • Discord
    • Forum
    • Success Stories
    • Treehouse Links
    • 100 Days of Code
  • Resources
    Chevron
    • Career Toolbox
    • CodeForward
    • Free Treehouse Near Me
    • Jobs
    • Blog
    • Support
    • About
  • For Individuals For Businesses For Schools For Libraries For Military
  • All Courses Tracks College Credit
  • Overview Front End Web Development Full Stack JavaScript Python Development Data Analysis UX Design
  • Code Adventures Discord Forum Success Stories Treehouse Links 100 Days of Code
  • Career Toolbox CodeForward Free Treehouse Near Me Jobs Blog Support About
  • Sign In
  • Free Trial
Instagram Twitter Facebook YouTube LinkedIn
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • AI
      • • Android
      • • APIs
      • • Coding for Kids
      • • College Credit
      • • Computer Science
      • • CSS
      • • Data Analysis
      • • Databases
      • • Design
      • • Development Tools
      • • Digital Literacy
      • • Game Development
      • • Go Language
      • • HTML
      • • Java
      • • JavaScript
      • • Learning Resources
      • • Machine Learning
      • • No-Code
      • • PHP
      • • Professional Growth
      • • Python
      • • Quality Assurance
      • • React
      • • Ruby
      • • Security
      • • Swift
  • Hunter Miller
    Hunter Miller
    4,592 Points

    Stuck here. Please help

    Posted February 8, 2017 7:36pm by Hunter Miller
    Hunter Miller
    4,592 Points
    • Ruby
    • Ruby Booleans
    • Ruby Booleans
    • Boolean Review

    2 Answers

  • Avery Greenlees
    Avery Greenlees
    4,615 Points

    Ruby Booleans Help! First if statement

    Posted February 8, 2017 1:25pm by Avery Greenlees
    Avery Greenlees
    4,615 Points
    • Ruby
    • Ruby Booleans
    • Ruby Booleans
    • Boolean Review

    2 Answers

  • Rick Buffington
    Rick Buffington
    8,146 Points

    Negation operator incorrect?

    Posted April 19, 2016 3:05pm by Rick Buffington
    Rick Buffington
    8,146 Points
    • Ruby
    • Ruby Booleans
    • Ruby Booleans
    • Negation

    2 Answers

  • Nick Vitsinsky
    Nick Vitsinsky
    7,246 Points

    the only available .rb's in workspaces

    Posted March 12, 2016 9:00am by Nick Vitsinsky
    Nick Vitsinsky
    7,246 Points
    • Ruby
    • Ruby Booleans
    • Ruby Booleans
    • Nil

    1 Answer

  • Ross Peace
    PLUS
    Ross Peace
    Courses Plus Student 17,401 Points

    The different boolean values, true, false, and nil, have different precedence in a program. The same is true with differ

    Posted December 26, 2015 12:43pm by Ross Peace
    Ross Peace
    Courses Plus Student 17,401 Points
    • Ruby
    • Ruby Booleans
    • Ruby Booleans
    • Precedence

    2 Answers

  • Long Nguyen
    Long Nguyen
    11,485 Points

    Add an else clause to the if statement which calls the display_car_speed method

    Posted December 11, 2015 5:33pm by Long Nguyen
    Long Nguyen
    11,485 Points
    • Ruby
    • Ruby Booleans
    • Ruby Booleans
    • Boolean Review

    2 Answers

  • Ingrid Bardales
    Ingrid Bardales
    10,616 Points

    conditional assignment: if variable is an empty string why doesn't this snippet return the else statement

    Posted October 4, 2015 10:58pm by Ingrid Bardales
    Ingrid Bardales
    10,616 Points
    • Ruby
    • Ruby Booleans
    • Ruby Booleans
    • Conditional Assignment

    2 Answers

  • Nicole Archambault
    Nicole Archambault
    27,853 Points

    [SOLVED] Not understanding why "1 && 2 == 1 && 2" evaluates to "false"

    Posted September 20, 2015 9:23am by Nicole Archambault
    Nicole Archambault
    27,853 Points
    • Ruby
    • Ruby Booleans
    • Ruby Booleans
    • Precedence

    0 Answers

  • William Bode
    William Bode
    7,105 Points

    Useful Applications of Conditional Assignment?

    Posted June 24, 2015 10:28pm by William Bode
    William Bode
    7,105 Points
    • Ruby
    • Ruby Booleans
    • Ruby Booleans
    • Conditional Assignment

    2 Answers

  • Daniel Wise
    Daniel Wise
    9,119 Points

    I thought I am using the operator

    Posted June 23, 2015 7:24am by Daniel Wise
    Daniel Wise
    9,119 Points
    • Ruby
    • Ruby Booleans
    • Ruby Booleans
    • Conditional Assignment

    1 Answer

  • Sara Brothers
    Sara Brothers
    7,341 Points

    Ruby Boolean

    Posted June 8, 2015 4:54pm by Sara Brothers
    Sara Brothers
    7,341 Points
    • Ruby
    • Ruby Booleans
    • Ruby Booleans
    • Boolean Review

    2 Answers

  • Sara Brothers
    Sara Brothers
    7,341 Points

    Boolean Ruby

    Posted June 8, 2015 4:06pm by Sara Brothers
    Sara Brothers
    7,341 Points
    • Ruby
    • Ruby Booleans
    • Ruby Booleans
    • Boolean Review

    2 Answers

  • SY LOC
    SY LOC
    3,233 Points

    Create a method on the Product class called sku. The sku method should return nil.

    Posted May 26, 2015 2:40am by SY LOC
    SY LOC
    3,233 Points
    • Ruby
    • Ruby Booleans
    • Ruby Booleans
    • Nil

    1 Answer

  • Anuj Nagpal
    PLUS
    Anuj Nagpal
    Courses Plus Student 3,748 Points

    Using the negation operator, reverse the logic in the boolean statement.

    Posted May 24, 2015 8:33am by Anuj Nagpal
    Anuj Nagpal
    Courses Plus Student 3,748 Points
    • Ruby
    • Ruby Booleans
    • Ruby Booleans
    • Negation

    2 Answers

  • Leo Tank
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Leo Tank
    Full Stack JavaScript Techdegree Student 36,270 Points

    Why Nil?

    Posted May 17, 2015 5:35pm by Leo Tank
    .a{fill-rule:evenodd;}techdegree
    Leo Tank
    Full Stack JavaScript Techdegree Student 36,270 Points
    • Ruby
    • Ruby Booleans
    • Ruby Booleans
    • Nil

    1 Answer

  • John Bamberg
    John Bamberg
    9,774 Points

    comment

    Posted May 13, 2015 12:32am by John Bamberg
    John Bamberg
    9,774 Points
    • Ruby
    • Ruby Booleans
    • Ruby Booleans
    • Conditional Assignment

    2 Answers

  • TJ Takei
    TJ Takei
    13,362 Points

    typo display_car_speed

    Posted February 9, 2015 7:24pm by TJ Takei
    TJ Takei
    13,362 Points
    • Ruby
    • Ruby Booleans
    • Ruby Booleans
    • Boolean Review

    1 Answer

  • adi badhwar
    PLUS
    adi badhwar
    Courses Plus Student 884 Points

    What error in following code ?

    Posted January 8, 2015 11:41am by adi badhwar
    adi badhwar
    Courses Plus Student 884 Points
    • Ruby
    • Ruby Booleans
    • Ruby Booleans
    • Boolean Review

    1 Answer

Posting to the forum is only allowed for members with active accounts.
Please sign in or sign up to post.

    Treehouse

  • About
  • Blog
  • Careers
  • Community
  • Stories
  • Shop
  • Contact
  • Gift Card

See Full Catalogue

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
  • Python Development
  • Data Analysis
  • UX Design

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
  • ...see more

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
  • ...see more

Explore

  • Plans
  • Affiliates
  • Perks
  • Free Treehouse Near Me
  • Treehouse for Libraries
  • Treehouse for Businesses
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
Terms & Conditions | Privacy

© 2025 Treehouse Island, Inc.