!=

expr numeric inequality operator

expr { $a != $b }

Will use string comparison if either argument cannot be interpreted as a number, but if that's what you want, use the ne operator instead.