create var in ifstatment kotlin code example Example: kotlin if if (a > b) { max = a } else { max = b }