Getting to know Kotlin!
var flag = false;
if(condition) {
//do one thing
flag = true;
}
if(condition2) {
//do another thing
flag = true;
}
if(flag)
save();
What is the right way to do this in Kotlin avoiding the flag approach?