title: invalid command name in TCL
body: <p>invalid command name "if{0}{"</p>
  
  <p><img src="https://i.stack.imgur.com/3jMUM.png" alt="tcl script output"></p>
  
  <p><img src="https://i.stack.imgur.com/Hw58q.png" alt="tcl script"></p>
  
  <p>Giving me an error, for that I have find how many cell in the file.
  Where am I making a mistake?</p>
  
  <p>Update::::::::::::::::::::::::::::::::::::::::::::::::::::::::</p>
  
  <p>I am having an issue while sorting an array...
  It says
  <a href="https://i.stack.imgur.com/imJmh.png" rel="nofollow">enter image description here</a></p>
  
  <p>Since the last element is integer, still it says "expected integer but got...
  Where am i making mistake?</p>