[pmwiki-devel] php logic question

christian.ridderstrom at gmail.com christian.ridderstrom at gmail.com
Tue Mar 13 15:59:20 CDT 2007


On Tue, 13 Mar 2007, Hans wrote:

> For logical condition tests, is the following allowed:
>
> if (!$page OR !$permit)
>
> or this:
>
> if ((!$page) OR (!$permit))
>
> or are they equivalent?

I'm no php expert, but '!' should have higher precedence than '||' (OR), 
so just use

 	if (!$page || !$permit)

Um... what exactly is '$page'?

/Christian

-- 
Christian Ridderström, +46-8-768 39 44               http://www.md.kth.se/~chr


More information about the pmwiki-devel mailing list