I have a question about if statement in tcl of the following code:
if {(($number == 1)&&($name == \"hello\")) || (($number == 0)&&($name == \"yes
In short: if
uses a special "mini language" for its condition script — the same understood by the expr command. This is stated in the if manual page:
The if command evaluates expr1 as an expression (in the same way that expr evaluates its argument).
In contrast to Tcl itself, which is quite LISP-like and/or Unix shell-like, that "expr
mini language" is way more "traditional" in the sense it feels like C.