I would like to have default return like in java i...
# getting-started
d
I would like to have default return like in java in kotin but when's else doesnt do the thing as it has to be in separate case
n
Isn’t ur code returning
eCGI
just when
TYPE_LTE
else its
CGI
?
d
Yes, it is but I would like to state that explicilty
l
when (x) { 0, 1 -> print("x == 0 or x == 1") else -> print("otherwise") }