using if else statenent in kotlin code example Example: kotlin if if (a > b) { max = a } else { max = b }