-
All replies
-
Helpful answers
-
Sep 30, 2016 6:14 AM in response to SugarmanZhuby Wayne Contello,Reviewing information from here:
And if else is in the form:
if score > 50 {teamScore += 3} else {teamScore += 1}
and later in the text there is a test for equality:
print(optionalString == nil)
So the test for inequality is:
!=
like this:
if (score != 50) {// the score did not equal 50} else {// the score did equal 50}