is their syntactic sugar around `if (a != null &am...
# announcements
x
is their syntactic sugar around
if (a != null && b != null ) {
like there is with
a?.let {
?
d
That's not syntax sugar, that is an entirely different thing. There is nothing wrong with writing an if expression.
x
tomato potato, can I check 2 vars for null and do something like
(a, b)?.let {
only if neither is null
d
Yes, the solution is an if expression 😛
👍 1