[pmwiki-devel] Testing empty string

Jiri Hladůvka / OBUTEX admin at obutex.com
Wed Mar 14 04:25:00 CDT 2007


christian.ridderstrom at gmail.com napsal(a):
> ...
> But back to the bug... Personally I'd expect a syntax error from
>
>     (:if "" :)
>
> but as it's not NULL, I guess the result should be true. 
> Unfortunately, I think many authors would expect it to return false. 
> What do you think?
> (We should look at the user case, i.e. someone doing something like
>
>     (:if "{$Variable}" :)
>
> where {$Variable} is emtpy (or perhaps rather, not set)
>
> Regards,
> /Christian
>
You are right. I think that only author beeing professional programmer 
could come with such a test.
After all such a person should be able to find a workaround when debugging.

Regards,
Jiri

-- 
OBUTEX s.r.o
Ing.Jiří Hladůvka
Zlatovská 22
911 01 Trenčín

tel.: +421 (0)32 6587000
mailto:admin at obutex.com

http://www.obutex.com





More information about the pmwiki-devel mailing list