Tcl interpreter
I have develop a code , I am facing problem with error flagging of the Tcl interpreter on Linux machine.




  #!/usr/bin/tclsh

  if {1} {
 	 puts "abc1"
  } elseif {} {

 	puts "abc2"
   
  }



The above code is not flagging error for "elseif" condition until it get into the
elseif condition.
Is there any way to check this kind of typo error done unintentionally.

Thank in advance!

Tcl interpreter
===

I have develop a code , I am facing problem with error flagging of the Tcl interpreter on Linux machine.




  #!/usr/bin/tclsh

  if {1} {
 	 puts "abc1"
  } elseif {} {

 	puts "abc2"
   
  }



The above code is not flagging error for "elseif" condition until it get into the
elseif condition.
Is there any way to check this kind of typo error done unintentionally.

Thank in advance!
