Skip to main content

🛍️ BLACK FRIDAY get-one-give-one sale is underway. Don't miss $50 off PLUS a free subscription to gift a friend. 🤩

🚀 In our NEW AI Bootcamp you'll build a working app in 28 days, no experience required. Free to all subscription levels.

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

  • Treehouse Logo
    • For Individuals
    • For Businesses
    • For Schools
    • For Libraries
    • For Military
    • All Courses
    • Tracks
    • AI Bootcamp
    • College Credit
    • Techdegree Bootcamps
    • Front End Development
    • Full Stack JavaScript
    • Code Adventures
    • Discord
    • Forum
    • Success Stories
    • Treehouse Links
    • 100 Days of Code
    • Explore
    • Career Toolbox
    • Free Treehouse Near Me
    • Affiliates
    • Blog
    • Support
    • About
    • Learn
    • Beginner's Guide to Coding
    • Data Analysis with SQL & Python
    • Front-End Web Development
    • Python Programming Basics
    • Techdegree Bootcamp Overview
    • UX Design Fundamentals
    • AI Tools for Beginners
  • For Individuals For Businesses For Schools For Libraries For Military
  • All Courses Tracks AI Bootcamp College Credit
  • Techdegree Bootcamps Front End Web Development Full Stack JavaScript
  • Code Adventures Discord Forum Success Stories Treehouse Links 100 Days of Code
  • Explore Career Toolbox Free Treehouse Near Me Affiliates Blog Support About
    Learn Beginner's Guide to Coding Data Analysis with SQL & Python Front-End Web Development Python Programming Basics Techdegree Bootcamp Overview UX Design Fundamentals AI Tools for Beginners
  • Sign In
  • Free Trial
Instagram Twitter Facebook YouTube LinkedIn
Loading banner... Start your free trial at Treehouse
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • AI
      • • 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
      • • Vibe Coding
  • 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.

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
SEE ALL

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
SEE ALL

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
SEE ALL

About Us

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

Explore

  • Plans
  • Affiliates
  • Perks
  • Shop
  • Free Treehouse Near Me
  • Treehouse for Libraries
  • Treehouse for Businesses

Treehouse is an online technology education platform founded in 2011. Treehouse offers more than 700 self-paced, video-based courses in web development, programming, data analysis, design, and AI, plus two project-based bootcamp programs in Front End Web Development and Full Stack JavaScript. Individual Treehouse plans start at $25 per month and include a 7-day free trial. Treehouse serves individual learners, businesses, schools, and public libraries. Cardholders at participating U.S. public libraries can use Treehouse for free. Select Treehouse courses, offered with University Pathways International, are recommended for college credit by ACE and NCCRS. Treehouse learners earn digital certificates for completed Tracks.

Terms & Conditions · Privacy · © 2026 Treehouse Island, Inc.
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
  • Discord