Correct use for "if (this and that) {}"
Posted: Fri Jun 21, 2002 11:18 pm
Hi,
I can't seem to get a simple "if" instruction to work:
if ($thisvar and !somefunc()) { ... }
When $thisvar is true, it always executes the conditional code, no matter the value returned by somefunc().
What am I doing wrong?
Thanks in advance.
I can't seem to get a simple "if" instruction to work:
if ($thisvar and !somefunc()) { ... }
When $thisvar is true, it always executes the conditional code, no matter the value returned by somefunc().
What am I doing wrong?
Thanks in advance.