SyntaxFix
Write A Post
Hire A Developer
Questions
Another interesting approach would be to use when:
when
when(a) { true -> b false -> c }
Can be quite handy in some more complex scenarios. And honestly, it's more readable for me than if ... else ...
if ... else ...