orElse

fun orElse(other: T?): T?

If a value is present, returns the value, otherwise returns other.

Return

the value, if present, otherwise other

Parameters

other

the value to be returned, if no value is present. May be null.