Join Slack
Powered by
does anybody know how to handle two parametrs in w...
# android
s
stepan.zalis
09/13/2017, 12:23 PM
does anybody know how to handle two parametrs in when statements? like when(Object object) { object == “something” && x == 4 … } ?
m
menegatti
09/13/2017, 12:23 PM
Use the
when
without a parameter:
Copy code
when { object == “something” && x == 4 -> }
Open in Slack
Previous
Next