Php conditional statement

Is their anyway possible to end your conditional statement in php inside. Like ending it without reading all the code inside:

for example:

if (condition statement)
{
code 1
code 2
code 3
if (code 4 is empty)
{
END CONDITION HERE
}
code 5
code 6
code 7
}

something like this… What I want is if code 4 is empty or whatever condition, it should end. The code 5, code 6, code 7 should not be read. I’m wondering if php have that.

if (condition statement)
{
code 1
code 2
code 3
if (code 4 is empty)
{
END CONDITION HERE
}
else
{
code 5
code 6
code 7
}
}

No else, just use not.


if ($condition) {
/*
 * code
 */
  if (!$condition2) {
  /*
   * More code
   */
  }
}

Dope! I misread it the first time around thinking “END CONDITION HERE” would contain code, good catch.