Re: Problem with if/else
- From: Uwe Klein <uwe_klein_habertwedt@xxxxxxxxxxx>
- Date: Thu, 29 Mar 2007 18:10:33 +0200
Hi Dan,
couple of things.
handle eof in expect
if { "$stringA" == "$stringB" }
you wrote "=" but need towrite "=="
And imho the better way would be to use [switch]
instead of endless if else if ...
switch -exact -- $value \
$couldbe1 {
# action for first possible value
........
} $couldbe2 {
# action for other value
............
} default {
# default action
..............
}
is "hard(config:noe" really on the same line?
uwe
.
- Follow-Ups:
- Re: Problem with if/else
- From: Glenn Jackman
- Re: Problem with if/else
- From: Dan
- Re: Problem with if/else
- References:
- Problem with if/else
- From: Dan
- Problem with if/else
- Prev by Date: Re: Hosting providers
- Next by Date: scrollbar question
- Previous by thread: Problem with if/else
- Next by thread: Re: Problem with if/else
- Index(es):
Relevant Pages
|