I am looking for some kind of equivalent to the sw...
# announcements
b
I am looking for some kind of equivalent to the swift
if let - else
syntax and didn't find anything appropriate, I also tried to write something on my own but I am still not quite happy, how do you write code which is something like this in swift/pseudo:
Copy code
val someValue: String? = "canBeNullOrNot"
if let someRealValue = someValue {
    doSomethingWithTheString(someRealValue)
} else {
    logThisCase()
}