```if ( val foo1 = foo?.first?.second?.third?.four...
# announcements
n
Copy code
if ( val foo1 = foo?.first?.second?.third?.fourth?.fifth ){
}
Why just not?
Copy code
foo?.first?.second?.third?.fourth?.fifth?.let { foo1 ->
   …
}
g
Because if you need
else
you now need elvis operator and code become looks ugly