hmm... I suppose I could do that, but when might f...
# getting-started
x
hmm... I suppose I could do that, but when might fit better.. however
Copy code
when {
   x == 2 -> doThing()
   x.isEven() -> doOtherThing()
}
if x is 2 will it call both doThing() and doOtherThing()?