https://kotlinlang.org/docs/reference/control-flow.html
if (s.equals("hoge")){ println(1) } else if (s.equals("fuga")){ println(2) } else { println(3) }
var s:String = "fuga" var i:Int = if (s.equals("hoge")) 1 else 2 println(i)
var s:String = "fuga" when(s){ "hoge", "fuga" -> println(1) else -> println(2) }
var s:String = "fuga" var i:Int = when(s){ "hoge", "fuga" -> 1 else -> 2 } println(i)