Ok, I am trying to use the nested if-else statements, but still not getting it to work just right. Lets take an example. I have an IF statement and some code to be executed IF the condition is met. But, if the condition is NOT met, I don't want to do the code that follows (i.e., CODE BLOCK A or 😎, rather I want to skip past all the PhP Code and execute some Java script that follows. If I use a exit; statement, it exits the php file completely and the Jave does not execute.
if(condition)
{
....Do this code
}
ELSE (I want to skip past CODE BLOCKs 1 nd 2 and go to the end of the PHP code (Point A) and do the JAVA Script that follows)
{
CODE BLOCK 1
}
{
CODE BLOCK 2
{
POINT A
?>
SOME HTML CODE AFTER MY PHP CODE