mardi 25 avril 2017

extra words after "else" clause in "if" command for TCL code

I have a tcl code where -

    if { $xyz == 43 } {
       # 1. Set some variables
       set my_filename_log "somename_log.txt"
       if {[file exists $my_filename_log ]} {
           file delete -force $my_filename_log 
       }
    } # end of xyz = 43

I am getting error as - TCLERROR: wrong # args: extra words after "else" clause in "if" command while compiling - if { $xyz == 43 } { # 1. Set some variables... Not sure what is wrong with this code, checked tcl documentation didnt find anything

Aucun commentaire:

Enregistrer un commentaire