Kotlin use of less than in when statement. How can I change the first in statement to a less than? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

Kotlin use of less than in when statement. How can I change the first in statement to a less than?

https://code.sololearn.com/cH6mY4bSnrZl/?ref=app

13th Dec 2022, 12:47 AM
William Owens
William Owens - avatar
1 Answer
+ 2
When using the WHEN statement you can remove the parantheses and use the variable of your desire to create a condition I have modified your code to show what I mean https://code.sololearn.com/cCT32mId6RXR/?ref=app
22nd Dec 2022, 2:04 PM
Vanessa Nilsson