Mohamed Ibrahim
07/08/2019, 9:16 AMwhen
with ignorecase when it comes to comparing stringsdiesieben07
07/08/2019, 9:18 AMtseisel
07/08/2019, 9:20 AMwhen
?
when (text.toUpperCase()) {
"FOO" -> doFoo()
"BAR" -> doBar()
}
diesieben07
07/08/2019, 9:21 AMMohamed Ibrahim
07/08/2019, 9:25 AMtseisel
07/08/2019, 9:58 AMDominaezzz
07/08/2019, 1:50 PM