Sorry, this is probably a real dumb question, but I can't find any reference on it (and it sure is hard to do a decent search on the words "if" and "not"
.
How can I do an IF NOT statement in PHP? What I want is something like this:
if NOT (evaluation) {
do code
}
I've tried evaluating to false, using "!=" and "<>", but they all give me an error.
Of course I can use an if...else syntax and I will do that for now, but there must be a better way, since I only want to perform the action if something doesn't evaluate.
Thanks! -- Mike

How can I do an IF NOT statement in PHP? What I want is something like this:
if NOT (evaluation) {
do code
}
I've tried evaluating to false, using "!=" and "<>", but they all give me an error.
Of course I can use an if...else syntax and I will do that for now, but there must be a better way, since I only want to perform the action if something doesn't evaluate.
Thanks! -- Mike