In Java you can do the following:
boolean a = true;
if(a = false) {
//////
}
And a will be set to false and be used after that as argument. But in kotlin, I couldn't find a way to do that, except for:
var a = true
a = false
if(a) {
}
Is there any better way?