title: Crystal Report If else on formula
body: <p>I got an error for following formula on crystal reports.error is <strong>The remaining text does not appear to be part of the formula</strong></p>
  
  <pre><code>Numbervar t:=0;
  IF({GLTRANDE.GLTYPE} =1 OR {GLTRANDE.GLTYPE} =5 )Then
  WhilePrintingRecords;
  t:=tonumber({GLTRAN.CRDIFF})-tonumber({GLTRAN.DRDIFF})
  //ELSE IF({GLTRANDE.GLTYPE}="2" OR {GLTRANDE.GLTYPE}="3" OR {GLTRANDE.GLTYPE}="4" )Then
  else
  WhilePrintingRecords;
  t:=tonumber({GLTRAN.DRDIFF})-tonumber({GLTRAN.CRDIFF})
  </code></pre>
  
  <p>please give a advice for rectify this issue</p>