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 trialAngus Muller
iOS Development Techdegree Graduate 12,473 PointsWorking with different data types in library collection - project1
Hi, I am very new to Swift and struggling with project1, I have put each player into their own library and made the value data type "Any" as storing the users experience as a boolean. But when I try and use some code like if player1["EXP"] == false, I cannot do this as I get a error that == cannot be applied to "any" type.
I suppose I could store player experience as a yes or no string. Is there a way to store data as boolean or should I stick to storing yes or no as string?
Thanks Angus