[Swift] Conditional Statements (조건문)
목차 if Statement (if문) if else else-if switch Statements switch case switch case where guard Statements if Statement (if문) if else else-if If if condition { statements } let id = "patrick" let password = "1234" if id == "patrick" { print("valid id") // vaild id } if password == "1234" { print("vaile password") // vaild password } else if condition { statements } else { statements } if id == "patr..
Swift
2021. 2. 16. 15:40
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- 삼항연산자
- 옵셔널
- 전산구문 기초용어
- swift
- 결합성
- 산술연산자
- 훈련법
- 범위연산자
- Constants
- 객체지향 생활체조
- 반복문
- variables
- 구문이름표
- 비트연산자
- labeled
- iOS View Life Cycle
- datatypes
- scope
- conditional
- RawValues
- 오버플로우연산자
- 흐름제어구문
- overflow
- enumerations
- continue
- 오토레이아웃
- Functions
- optional
- playground
- 세자리수마다 콤마넣기
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
글 보관함