In Kotlin is there an equivalent to the Swift code below?
if let a = b.val { } else { }
Swift if let statement in Kotlin
The short answer is use simple IF-ELSE as by the time of this comment there is no equivalent in Kotlin LET,
if(A.isNull()){ // A is null }else{ // A is not null }