if else statment in TCL

set i 10

o/p:10

if {$i!=10} { puts "i value is not 10} else {

> puts "i value is 10" }

o/p:i value is 10

if {$x==10} { puts “x value is $x”} else { puts “x value is not $x”}

o/p:x value is 10