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 trialMitchell Fuller
1,034 PointsChallenge Task 2 of 2...
bool isMember = TRUE; NSLog (@"getsDicount: %i", isMember);
I couldn't work out where was incorrect.
bool isMember = TRUE; NSLog (@"getsDicount: %i", isMember);
1 Answer
Jennifer Nordell
Treehouse TeacherHi 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!
Mitchell Fuller
1,034 PointsMitchell Fuller
1,034 PointsThanks Jennifer. I was over thinking. Very simple code. Thanks again for the hint?