mg6maciej
val str = ...
when { str == "foo" -> foo() str.contains("bar") -> bar() "baz" in str -> baz() }