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 Objective-C Basics Basic Data Types and Variables Boolean Variables

Luis Paulino
Luis Paulino
Courses Plus Student 1,779 Points

How to assign a bool a value of another boool?

I don't under stand I'm pretty sure I'm writing it correctly, but I'm sure there is a grammar mistake I'm making I can't see.

bool isMember=true;
bool getDiscount=isMember;

1 Answer

Jennifer Nordell
Jennifer Nordell
Treehouse Teacher

Oh so close! It's actually just a spelling error. They want the variable named getsDiscount and you've typed getDiscount. Note the additional "s" in the first variable name :smiley: