What the heck? The string "[status]='active'" doesn't check anything.
It is converted to boolean by the if statment, which will be true, as
it's not an empty string. I'm guessing you want to use
if($status=='active'){
Hunter, Jess wrote:
I have a short bit of code that contains an if/else th
I have a short bit of code that contains an if/else that is causing me some
trouble, I am sure that the answer is staring me straight in the face, and I
am not seeing it.
Can someone take a look and see where I am coding wrong?
if ("[status]='active'"){
print ("the active line\n");
} else {
pri
2 matches
Mail list logo