what to type for and in kotlin if statement code example Example: kotlin if if (a > b) { max = a } else { max = b }