RosettaCodeData/Task/String-comparison/Tcl/string-comparison-2.tcl

7 lines
157 B
Tcl
Raw Permalink Normal View History

2013-04-11 01:07:29 -07:00
if {[string compare $a $b] < 0} {
puts "first string lower than second"
}
if {[string compare $a $b] > 0} {
puts "first string higher than second"
}