you are gonna want AND logic.
if the string is not goodbye, AND its not aurevoir, AND its not adios, then it is none of them.
shorten the logic and you'll see it makes sense as and.
$string = 'goodbye';
if ($string != 'aurevoir' && $string != 'goodbye') {
that will evaluate as
if (0 && 1)
which evals to
if ( 0 )
which doesnt execute the brackets.
here is it with or.
$string = 'goodbye';
if ($string != 'aurevoir' || $string != 'goodbye') {
if (0 || 1)
evals to
if (1)
so the brackets are executed.
an or only needs one condition to match, while an and needs all conditions to match.