set x 1
if {$x == 1} {
puts "x=1"
} else {
jsfdlkdsjfh
}
Hello All,
In the above code, there is a Syntax error in the 'else' part. If I run this in tclsh, I don't get any error. Unlike c/C++, tclsh does not give all syntax errors in the script. Since, x=1 if condition is always satisfied so...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.