Issue
Is there any way to make an expression like this:
when(enum) {
EnumType && boolean ->
without moving the enum variable out of when expression like this:
when {
enum==EnumType && boolean ->
Solution
Please post full code but I can do something like this
when(enum){
EnumType -> {
if(boolean) {
}
}
}
If you describe your problem with more code we can help you better
Answered By - mmdreza baqalpour
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.