Skip to main content

Notice: Workspaces are undergoing maintenance and are temporarily unavailable.

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

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

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
  • Christopher Gardner
    Christopher Gardner
    12,719 Points

    Having trouble with multiple &&

    Posted February 10, 2019 6:38pm by Christopher Gardner
    Christopher Gardner
    12,719 Points
    • JavaScript
    • JavaScript Basics (Retired)
    • Making Decisions with Conditional Statements
    • Combining Multiple Tests Into a Single Condition

    2 Answers

  • sebbe12
    sebbe12
    4,015 Points

    How to write &&&& for me altgr < is for |||||| but can't find &&&&&& on the keyboard

    Posted August 16, 2018 1:21pm by sebbe12
    sebbe12
    4,015 Points
    • JavaScript
    • JavaScript Basics (Retired)
    • Making Decisions with Conditional Statements
    • Combining Multiple Tests Into a Single Condition

    1 Answer

  • Stef Brands
    Stef Brands
    8,522 Points

    Some incorrectish info in the video. If(a || b){} != if(b||a){}, same for &&.

    Posted June 25, 2018 1:30pm by Stef Brands
    Stef Brands
    8,522 Points
    • JavaScript
    • JavaScript Basics (Retired)
    • Making Decisions with Conditional Statements
    • Combining Multiple Tests Into a Single Condition

    1 Answer

  • Peter Ajuzie
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Peter Ajuzie
    Full Stack JavaScript Techdegree Student 2,719 Points

    && and || Operators

    Posted January 4, 2018 6:35am by Peter Ajuzie
    .a{fill-rule:evenodd;}techdegree
    Peter Ajuzie
    Full Stack JavaScript Techdegree Student 2,719 Points
    • JavaScript
    • JavaScript Basics (Retired)
    • Making Decisions with Conditional Statements
    • Combining Multiple Tests Into a Single Condition

    1 Answer

  • Charlotte Zhang
    Charlotte Zhang
    4,425 Points

    Guys, I am a little bit confused about the comparison between number and strings.

    Posted July 15, 2017 12:35am by Charlotte Zhang
    Charlotte Zhang
    4,425 Points
    • JavaScript
    • JavaScript Basics (Retired)
    • Making Decisions with Conditional Statements
    • Combining Multiple Tests Into a Single Condition

    3 Answers

  • Nikica Maksimovski
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Nikica Maksimovski
    Full Stack JavaScript Techdegree Student 14,080 Points

    Or conditions

    Posted June 27, 2017 8:08am by Nikica Maksimovski
    .a{fill-rule:evenodd;}techdegree
    Nikica Maksimovski
    Full Stack JavaScript Techdegree Student 14,080 Points
    • JavaScript
    • JavaScript Basics (Retired)
    • Making Decisions with Conditional Statements
    • Combining Multiple Tests Into a Single Condition

    2 Answers

  • Vic Mercier
    Vic Mercier
    3,276 Points

    || operator

    Posted April 19, 2017 8:38pm by Vic Mercier
    Vic Mercier
    3,276 Points
    • JavaScript
    • JavaScript Basics (Retired)
    • Making Decisions with Conditional Statements
    • Combining Multiple Tests Into a Single Condition

    2 Answers

  • Elizabeth Eymann
    Elizabeth Eymann
    12,209 Points

    Understanding the "Or operator"

    Posted March 28, 2017 7:31pm by Elizabeth Eymann
    Elizabeth Eymann
    12,209 Points
    • JavaScript
    • JavaScript Basics (Retired)
    • Making Decisions with Conditional Statements
    • Combining Multiple Tests Into a Single Condition

    1 Answer

  • Akashdeep Matharu
    Akashdeep Matharu
    1,719 Points

    What if I wanted the user to guess the number in between.

    Posted March 19, 2017 12:54pm by Akashdeep Matharu
    Akashdeep Matharu
    1,719 Points
    • JavaScript
    • JavaScript Basics (Retired)
    • Making Decisions with Conditional Statements
    • Combining Multiple Tests Into a Single Condition

    2 Answers

  • Kyle Gibbons
    Kyle Gibbons
    1,388 Points

    I'm wondering why the attached code is 1, and not true. I ran it through repl.it, and thought I would get true, reason?

    Posted May 31, 2016 2:08am by Kyle Gibbons
    Kyle Gibbons
    1,388 Points
    • JavaScript
    • JavaScript Basics (Retired)
    • Making Decisions with Conditional Statements
    • Combining Multiple Tests Into a Single Condition

    2 Answers

  • Lorraine Wheat
    Lorraine Wheat
    6,083 Points

    Using II with strings

    Posted March 12, 2016 5:35pm by Lorraine Wheat
    Lorraine Wheat
    6,083 Points
    • JavaScript
    • JavaScript Basics (Retired)
    • Making Decisions with Conditional Statements
    • Combining Multiple Tests Into a Single Condition

    3 Answers

  • Joe Worthington
    Joe Worthington
    1,329 Points

    I'd like some critique and suggestions for improvement on my Quiz game please.

    Posted February 29, 2016 11:51am by Joe Worthington
    Joe Worthington
    1,329 Points
    • JavaScript
    • JavaScript Basics (Retired)
    • Making Decisions with Conditional Statements
    • Combining Multiple Tests Into a Single Condition

    3 Answers

  • anuj maheshwari
    anuj maheshwari
    1,314 Points

    Is there any syntax error ?

    Posted January 1, 2016 8:15am by anuj maheshwari
    anuj maheshwari
    1,314 Points
    • JavaScript
    • JavaScript Basics (Retired)
    • Making Decisions with Conditional Statements
    • Combining Multiple Tests Into a Single Condition

    5 Answers

  • fbriygig
    fbriygig
    15,370 Points

    Can you mix && (and) and || (or) operators in the same conditional block?

    Posted October 7, 2015 3:16pm by fbriygig
    fbriygig
    15,370 Points
    • JavaScript
    • JavaScript Basics (Retired)
    • Making Decisions with Conditional Statements
    • Combining Multiple Tests Into a Single Condition

    1 Answer

  • andyphan
    andyphan
    3,082 Points

    Help

    Posted July 24, 2015 2:55pm by andyphan
    andyphan
    3,082 Points
    • JavaScript
    • JavaScript Basics (Retired)
    • Making Decisions with Conditional Statements
    • Combining Multiple Tests Into a Single Condition

    1 Answer

  • Chris Shearon
    PLUS
    Chris Shearon
    Courses Plus Student 17,330 Points

    What's really fun is...

    Posted July 11, 2015 3:06am by Chris Shearon
    Chris Shearon
    Courses Plus Student 17,330 Points
    • JavaScript
    • JavaScript Basics (Retired)
    • Making Decisions with Conditional Statements
    • Combining Multiple Tests Into a Single Condition

    1 Answer

  • Mithun B
    PLUS
    Mithun B
    Courses Plus Student 748 Points

    he looks like Dr. Phill from hangover movie. xD

    Posted July 9, 2015 9:24am by Mithun B
    Mithun B
    Courses Plus Student 748 Points
    • JavaScript
    • JavaScript Basics (Retired)
    • Making Decisions with Conditional Statements
    • Combining Multiple Tests Into a Single Condition

    0 Answers

  • Rich Braymiller
    Rich Braymiller
    7,119 Points

    well...

    Posted February 25, 2015 3:17pm by Rich Braymiller
    Rich Braymiller
    7,119 Points
    • JavaScript
    • JavaScript Basics (Retired)
    • Making Decisions with Conditional Statements
    • Combining Multiple Tests Into a Single Condition

    11 Answers

  • Adam Tatusko
    Adam Tatusko
    16,589 Points

    Non-Boolean Variable Truth

    Posted October 30, 2014 8:22pm by Adam Tatusko
    Adam Tatusko
    16,589 Points
    • JavaScript
    • JavaScript Basics (Retired)
    • Making Decisions with Conditional Statements
    • Combining Multiple Tests Into a Single Condition

    4 Answers

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