ifelse
[Swift] Conditional & Loop
swift.org를 참고하여 정리한 글입니다. Swift.org Swift is a general-purpose programming language built using a modern approach to safety, performance, and software design patterns. www.swift.org 조건과 반복문에 대해서 알아보자. if & else let int3 = 3 if 5 > int3 { print("OK") } // if와 else if 5 > int3 { print("OK") } else { print("NO") } // else-if로 조건을 쓸 수 있다. if 2 > int3 { print("if 2") } else if 5 > int3{ print("else i..