[pmwiki-devel] Testing empty string (was:php logic question)
Jiri Hladůvka / OBUTEX
admin at obutex.com
Wed Mar 14 03:56:32 CDT 2007
I tested an ampty string in PmWiki and found that
(:if "" :)
and
(:if !"" :)
are both TRUE
(:if equal !"" true:)
and
(:if equal !"" false:)
are both FALSE
see http://www.revida.sk/wiki/index.php/Test/8
Regars,
Jiri
christian.ridderstrom at gmail.com napsal(a):
> On Tue, 13 Mar 2007, Hans wrote:
>
>>> if (!$page || !$permit)
>>
>>> Um... what exactly is '$page'?
>
>> $page is THE page, from
>> $page = RetrieveAuthPage($targetname, $FoxAuth, true);
>>
>> if no authorisation is given the var is empty, if authorised
>> $page is created as an array, and !$page is false.
>
> Ok. I was wondering if $page was a string, in which case I'm not sure
> if something like
>
> !""
>
> if true or false.
>
> /Christian
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> pmwiki-devel mailing list
> pmwiki-devel at pmichaud.com
> http://www.pmichaud.com/mailman/listinfo/pmwiki-devel
>
>
>
> __________ Informace od NOD32 2113 (20070313) __________
>
> Tato zprava byla proverena antivirovym systemem NOD32.
> http://www.nod32.cz
>
--
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