20 Jan
2016
if..elif..elif.. в Swift
switch true {
case x > 100: return ">100"
case x > 50: return ">50"
case x > 10: return ">10"
case x > 1: return ">1"
case x == 1: return "1"
default: return "<1"
}