Actually I thought like this way too. But its an if / else if so I can't move the affectation at the end... The behaviour of the move is not perfect if I put this line at the end.