In Kotlin, I can run code if an object is not null like this:
data?.let { // execute this block if not null }
But how can I execute a block of code if the object is null?
Just use a normal if:
if
if (data == null) { // Do something }