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

Mitchell Fuller
Mitchell Fuller
1,034 Points

Challenge Task 2 of 2...

bool isMember = TRUE;  NSLog (@"getsDicount: %i", isMember);

I couldn't work out where was incorrect.

variable_assignment.mm
bool isMember = TRUE;  NSLog (@"getsDicount: %i", isMember);

1 Answer

Jennifer Nordell
seal-mask
STAFF
.a{fill-rule:evenodd;}techdegree
Jennifer Nordell
Treehouse Teacher

Hi there! The second step of the challenge requires you to set up a new boolean variable in addition to the one you already had. It does not require you to use an NSLog statement to print anything to the console. Also, you've misspelled the getsDiscount variable in your NSLog statement. So make sure you double-check the spelling when creating that variable.

Hope these hints help, but let me know if you're still stuck! :sparkles:

Mitchell Fuller
Mitchell Fuller
1,034 Points

Thanks Jennifer. I was over thinking. Very simple code. Thanks again for the hint?