<@U3T3GAH8F> How about this tiny helper function? ...
# getting-started
r
@inaction How about this tiny helper function?
Copy code
fun ifNotNull(vararg args: Any?, block: () -> Unit) {
    for (arg in args) {
        if (arg == null) {
            return
        }
    }

    block()
}
Use it as,
Copy code
ifNotNull(test1, test2) {
            println("Null check done!")
        }