Swift 'if let' statement equivalent in Kotlin

In Kotlin is there an equivalent to the Swift code below? if let a = b.val { } else { }