Help with EXIT command inside if

Hi All,

I want to use EXIT command in a particular scenario.
In my script,its like that:-
if($vairable -eq 1);then
do this thing
do this
do this
fi

if($var2 -eq 1);then
do this
do this
fi

like this there are three four if conditions.
now I want is that if second condition is met then dont go ahead n exit here only else continue with the rest of code.

Kindly suggest me what can be done.

Thanks in advance.
Arun

hey...........can nyone plz help me regarding abv mentionde query...........

Hi,
Why dont you use "CASE" statement instead of "IF". The case statement is always preferred when there are many items to select from instead of using a large if/elif/else statement. It is usually used to implement menus in a script.

Check once if it suits your requirement.

Thanks,
amit