Skip to main content

🚀 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! 🤑

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

  • 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
  • Tor Håkon Thomassen
    Tor Håkon Thomassen
    669 Points

    ERROR

    Posted February 9, 2016 1:41am by Tor Håkon Thomassen
    Tor Håkon Thomassen
    669 Points
    • iOS
    • Swift Basics (retired)
    • Control Flow
    • Comparison and Logical Operators

    1 Answer

  • Shiv Bhatia
    Shiv Bhatia
    1,760 Points

    I'm using Swift 2.0, and when I try to use the NOT operator (!) it tells me that it's not a recognised operator.

    Posted October 24, 2015 12:04pm by Shiv Bhatia
    Shiv Bhatia
    1,760 Points
    • iOS
    • Swift Basics (retired)
    • Control Flow
    • Comparison and Logical Operators

    1 Answer

  • Shiv Bhatia
    Shiv Bhatia
    1,760 Points

    I'm using Swift 2.0, and when I try to use the NOT operator (!) it tells me that it's not a recognised operator.

    Posted October 24, 2015 12:04pm by Shiv Bhatia
    Shiv Bhatia
    1,760 Points
    • iOS
    • Swift Basics (retired)
    • Control Flow
    • Comparison and Logical Operators

    2 Answers

  • Harold Bellemare
    Harold Bellemare
    1,466 Points

    If/if else clause order (spoiler)

    Posted August 14, 2015 9:21pm by Harold Bellemare
    Harold Bellemare
    1,466 Points
    • iOS
    • Swift Basics (retired)
    • Control Flow
    • Comparison and Logical Operators

    1 Answer

  • John Scully
    John Scully
    1,018 Points

    What is the point of using string interpolation in the buzzfizz example?

    Posted July 23, 2015 4:04am by John Scully
    John Scully
    1,018 Points
    • iOS
    • Swift Basics (retired)
    • Control Flow
    • Comparison and Logical Operators

    1 Answer

  • Cameron Tredoux
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Cameron Tredoux
    iOS Development Techdegree Student 750 Points

    Would this be an efficient, or even correct, way of making the FizzBuzz Generator?

    Posted June 13, 2015 2:59am by Cameron Tredoux
    .a{fill-rule:evenodd;}techdegree
    Cameron Tredoux
    iOS Development Techdegree Student 750 Points
    • iOS
    • Swift Basics (retired)
    • Control Flow
    • Comparison and Logical Operators

    2 Answers

  • David Thai
    David Thai
    984 Points

    What was that link Amit was talking about?

    Posted May 27, 2015 7:49pm by David Thai
    David Thai
    984 Points
    • iOS
    • Swift Basics (retired)
    • Control Flow
    • Comparison and Logical Operators

    1 Answer

  • Hunter Christian Davis
    Hunter Christian Davis
    2,813 Points

    Confused

    Posted March 22, 2015 1:06am by Hunter Christian Davis
    Hunter Christian Davis
    2,813 Points
    • iOS
    • Swift Basics (retired)
    • Control Flow
    • Comparison and Logical Operators

    1 Answer

  • Kulan Kahadugoda
    Kulan Kahadugoda
    2,149 Points

    Why is there a slash before the "(distance)" in the if statement?

    Posted March 3, 2015 3:15pm by Kulan Kahadugoda
    Kulan Kahadugoda
    2,149 Points
    • iOS
    • Swift Basics (retired)
    • Control Flow
    • Comparison and Logical Operators

    1 Answer

  • Daniel Merrill
    Daniel Merrill
    2,888 Points

    Mistake on video

    Posted February 19, 2015 9:43pm by Daniel Merrill
    Daniel Merrill
    2,888 Points
    • iOS
    • Swift Basics (retired)
    • Control Flow
    • Comparison and Logical Operators

    2 Answers

  • tytyty
    tytyty
    4,974 Points

    Why did he say @ 3:57 "technically this should be close"?

    Posted January 29, 2015 4:39am by tytyty
    tytyty
    4,974 Points
    • iOS
    • Swift Basics (retired)
    • Control Flow
    • Comparison and Logical Operators

    1 Answer

  • Kathleen Loden
    Kathleen Loden
    838 Points

    Accessing a dictionary for use in the fizzbuzz exercise

    Posted October 24, 2014 10:11am by Kathleen Loden
    Kathleen Loden
    838 Points
    • iOS
    • Swift Basics (retired)
    • Control Flow
    • Comparison and Logical Operators

    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