begin
  integer cond
  cond = 1
  !
  if cond # 0 start
    if cond # 1 start { generated dangling else error until fixed with extra bracketing }
      cond = 4
    finish
  finishelsestart
    cond = 3
  finish

  ! Same logic but tortured expression of it...
  ! this one *would* have still generated dangling else error
  ! *IF* the then/else reversal were working as it should! (which it isn't)
  
  if cond # 0 start
    if cond = 1 start
    finishelse cond = 4
  finishelsestart
    cond = 3
  finish

  ! Let's test the simple reversal on its own...
  if cond = 1 start
  finishelse cond = 4

endofprogram