I have code like this:
public void Method()
{
if(something)
{
//some code
if(something2)
{
now I should break from ifs and go to te code outside ifs
}
return;
}
// The code i want to go if the second if is true
}
I want to know if there is any possibility to go to that code after ifs without using any goto statement or extracting rest of the code to the other method.
Update:
Yes I know Else ;) But this code is farly long and should be runned IF the first IF is false and when first IF is true And second is false. so extracting method I think is best Idea