Re: Problem with if/else
- From: Glenn Jackman <glennj@xxxxxx>
- Date: 29 Mar 2007 17:43:36 GMT
At 2007-03-29 12:10PM, "Uwe Klein" wrote:
if { "$stringA" == "$stringB" }
You don't need the quotes there. The act of substituting variables does
not introduce new word boundaries.
Also, if the OP's expect is sufficiently recent:
if {$stringA eq $stringB} { ... }
may be more efficient.
--
Glenn Jackman
"You can only be young once. But you can always be immature." -- Dave Barry
.
- Follow-Ups:
- Re: Problem with if/else
- From: Alexandre Ferrieux
- Re: Problem with if/else
- References:
- Problem with if/else
- From: Dan
- Re: Problem with if/else
- From: Uwe Klein
- Problem with if/else
- Prev by Date: Re: Problem with if/else
- Next by Date: Re: OPPORTUNITY FOR EXPERT Tcl/Tk DEVELOPER
- Previous by thread: Re: Problem with if/else
- Next by thread: Re: Problem with if/else
- Index(es):
Relevant Pages
|