kotlin else if
if (a > b) { // if } else if (a == b) { // else if } else { // else }
kotlin if null else
variable?.let { doSomething(it) } ?: doOtherThing()
Source: stackoverflow.com
if (a > b) { // if } else if (a == b) { // else if } else { // else }
variable?.let { doSomething(it) } ?: doOtherThing()