Kotlin

Kotlin Logical Operator Examples1 min read

Kotlin Code:

Output:




Kotin Logical operators used with Boolean (logical) values. They return boolean value. However, the && and || operators actually return the value of one of the specified operands.

Operator (||) – true if either of the Boolean expression is true. (Expression : (a>b)||(a<c))

Operator (&&) – true if all Boolean expressions are true. (Expression : (a>b)&&(a<c)

Leave a Comment