Standard if-statement

suggest change
val str = "Hello!"
if (str.length == 0) {
    print("The string is empty!")
} else if (str.length > 5) {
    print("The string is short!")
} else {
    print("The string is long!")
}

The else-branches are optional in normal if-statements.

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents