Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 21111d0

Browse files
done with operators
1 parent ea8b9a8 commit 21111d0

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

‎SwiftBasics/TypesOperators.playground/Contents.swift

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,18 @@ answer2
7676
/*:
7777
question ? answer1 : answer2
7878
*/
79+
80+
var ignitus = true
81+
82+
if ignitus {
83+
print("welcome to Ignitus!")
84+
}else{
85+
print("not welcome to ignitus!")
86+
}
87+
88+
!ignitus ? print("welcome") : print("nope!")
89+
90+
7991
// This statement ...
8092
//if hungry {
8193
// print("Let's eat!")

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /