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 trialRabbie Wordie
1,441 PointsI am really confused by the explanation and am not sure how to proceed based on what I hav been taught.
What do I need to do to make this if statement work?
var results: [Int] = []
for n in 1...100 {
// Enter your code below
if results = n * 7 && !% {
results.append
}
// End code
}
1 Answer
Atiq Ur Rahman
4,328 PointsI think it's best to provide the question, but I think the error is in this part of the code '!%' that doesn't look correct.