Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

string compare problem

Status
Not open for further replies.

stewang

Programmer
Joined
Aug 21, 2003
Messages
77
Location
NZ
Hello all:
I want to compare two string, but when I run my code, it has
some errors, would anyone help me.

my code as follow;

set x "this is string number 1 "
set y "this is string number 2 "

puts "comparison returns [string compare $x $y]"
puts "equality test returns [string equal $x $y]"

rgds
stewang
 
Thanks for you pay attention to my question.
I fix the problem already.

rgds
stewang
 
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Sponsor

Back
Top