I need a simple code block to eval two conditions but the secondition is a list of acceptable values.
How do?
Something like ....
PHP Code:if ((MyVar$ == 'Blah') && (AnotherVar$ == 'Meow', 'Moo', 'Woof'))
{
return 1
}
else
{
return 0
}
Printable View
I need a simple code block to eval two conditions but the secondition is a list of acceptable values.
How do?
Something like ....
PHP Code:if ((MyVar$ == 'Blah') && (AnotherVar$ == 'Meow', 'Moo', 'Woof'))
{
return 1
}
else
{
return 0
}
Bah, I knew I'd find it after I posted.
I used in_array