<div>Hello</div>  <div>&nbsp;</div>  <div>I was working with both algorithm2e and algorithmic package but could not find how to resolve the problem of putting an if condition with in the if condition i.e. nested if then else</div>  <div>&nbsp;</div>  <div>&nbsp;</div>  <div>\ForEach{M $\in$&nbsp; $s.MSG$_N$[]$}<BR>&nbsp;{</div>  <div>\STATE $quadrant \leftarrow FindNBRQuadrant(M.XLoc,M.YLoc)$\;<BR>&nbsp;\eIf{quadrant $\GT$ $0$}<BR>&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;\eIf{M.eventdetected $=$ $true$}<BR>&nbsp;&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;&nbsp;\STATE $distance \leftarrow FindDistanceToNBR($M.XLoc$,$M.YLoc$)$\;</div>  <div>&nbsp;&nbsp;&nbsp;&nbsp;\STATE $counteventQNBR[quadrant] \leftarrow counteventQNBR[quadrant]+1$\;<BR>&nbsp;&nbsp;&nbsp;&nbsp;\If{distance $\GT $distancetodistantQNBR[quadrant]$}<BR>&nbsp;&nbsp;&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\STATE $distancetodistantQNBR[quadrant] \leftarrow distance$\;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\STATE
 $slopeToDistantQNBR[quadrant] \leftarrow FindSlopeToDistantQNBR[distancetodistantQNBR[quadrant]]$\;</div>  <div>&nbsp;&nbsp;&nbsp;&nbsp;}<BR>&nbsp;&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp; }<BR>&nbsp;&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp;&nbsp;\STATE $countnoneventQNBR[quadrant] \leftarrow countnoneventQNBR[quadrant]+1$\;<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; }<BR>&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;}</div>  <div>}</div>  <div>&nbsp;</div>  <div>&nbsp;</div>  <div>regards</div>  <div>farhana</div><p>&#32;
      <hr size=1>Looking for last minute shopping deals? <a href="http://us.rd.yahoo.com/evt=51734/*http://tools.search.yahoo.com/newsearch/category.php?category=shopping"> 
Find them fast with Yahoo! Search.</a>