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

Create a bool variable named 'isMember' and assign it a value of true.

need it to pass

variable_assignment.mm

2 Answers

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

Hi there! Yes, we all want to pass our challenges. But before we just hand you an answer, I'd prefer to see some "good-faith" attempt on your part. It will be a better learning experience for you in the long run if we can see what you've tried that's failed so that we can point out what exactly you're missing.

I will, however, give some hints here. In this video at 7:13 Gabe declares a boolean variable and then later assigns it the value TRUE. You can do the same thing he did all on one line.

Hope this helps! :sparkles:

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