Re: IF statement

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I'd suggest a tutorial or something on BOOLEAN or LOGICAL OPERATORS.

For example:
true and false = false
true or false = true
not true and not false = false
not true or not false = true
and so on...

The IF statement will simply take the result of a logical operation,
and the result will either be true or false.  The magic with IF is in
the logic that you write.

Simon

On 10/18/07, ron.php <ron.php@xxxxxxxxxxxxxxxxxx> wrote:
> I just tried to send this to the list.  I am not trying make it post again, I
> don't think I had the e-mail address correct the first time.
>
> I am trying to stop $component_reference from doing the echo below when the
> value is 5 or 19.  I don't have the syntax right though.  What did I miss?
>
> Ron
>
> if ( ($component_reference != "5") OR ($component_reference != "19") ) {
> echo "<li><a href=\"index.php?request=" . $request . "\">" .
> $component_name . "</a>";
> }
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux