I am new to kotlin
, I have tried several ways to use following code
val strAction = "Grid"
when(strAction){
strAction.contains("Grid")->println("position is 1")
}
In above code strAction.contains("Grid") this line is showing me an error that Incompatible Type