Below are the if-else conditions statements I am using. I was thinking to remove code duplication inside //Statements 2
if (true)
{
List<string> usersList=getUsersList();
if(usersList.Length > 0){
//Statements 1
..............
}
else{
//Statements 2
.............
}
}
else
{
//Statements 2
.............
}
In the above code Need to repeat Statements 2. Is there way to send execution to main else loop.