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 Swift Basics Swift Operators Working With Operators: Part 2

Abdullah Tharwat
PLUS
Abdullah Tharwat
Courses Plus Student 192 Points

i can't solve this quiz , i need a push to keep me going

show me how to solve this quiz please .

operators.swift
// Enter your code below

var initialScore = 8
 initialScore += 1

let isWinner 

2 Answers

Steven Parker
Steven Parker
229,645 Points

:deciduous_tree: I couldn't find a bush, would this tree do? :laughing:

But you can assign the result of a comparison, for example:

let isGoodDeal = price < 5

So the other thing to consider is the kind of comparison you want to make for the challenge is to test if things are not equal. There's an example of the operator for this in the preceding video on Unary Operators.

Think maybe an Obama might be more helpful here than a Bush....

Check out the Steven's answer and link to the preceding video Unary Operators , in order to learn the correct operator for not equal.