Booleans type supports the negation, conjunction(&&), and disjunction(||) operations.
Conjunction and disjunction are lazily evaluated, so if the left-hand side satisfies the clause, then the right-hand side will not be evaluated:
fun main(args: Array<String>) { val x = 1 val y = 2 val z = 2 val isTrue = x < y && x < z val alsoTrue = x == y || y == z // www .j a v a 2 s . c o m println(isTrue) println(alsoTrue) }