I have a logic like below and i have a counter

```
if(condition1 == true)
{
           // do something

    if (counter==1)
    { 
        // break and go to last else statement
    }

}

else if (condition2==true)
{ 
    if (counter == 2)
    { 
        // break and go to last else statement
    }

    // do something
}
else
{
    // do this
}

```

how do i use break in this logic ?
i tried putting goto tag for else but apparently it is not valid . and i want to avoid switch as there is too much logic. 

counter will be 2 in second if else loop and if counter = 2 then first if and secong if else should execute if counter=3 then first if second if else third if else should execute ans so on –