Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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
210,423 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.