On Monday 15 December 2003 06:27 pm, you wrote:
> I'm trying to see if a value is an integer, using:
>
> if {[string is integer "${var}"]} {
> do something
> }
>
> When var is the empty string it returns true, so I have to use:
>
> if {!("" eq "${var}) && ...
>
> Is this a bug, or expected behavior?
Use "string is integer -strict". This will do.
Cheers
Zoran
--
AOLserver - http://www.aolserver.com/
To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: field of
your email blank.