Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

iOS Swift 2.0 Basics Swift Types Numbers and Booleans

Pratik Jain
Pratik Jain
3,922 Points

At the 5:11 mark boolean True is said to be 0. Isn't that wrong?

In Swift Basics 2.0, Numbers and Booleans video, At the 5:11 mark boolean True is said to be 0. Isn't that wrong?Just want to clarify.

4 Answers

Yeah, True should be 1 and False should be 0

Arthur Mafra
Arthur Mafra
11,475 Points

Agreed. Better to have a note bellow the video, beginners must be confused.

The misspoken true=0 false=1 recurs again in the recap, about 6:35.

Looks ilke they've edited the video to show the booleans correctly.