Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

Is this possible?

(Page 2 of 2)
> >
Quote Reply
Re: [Andy] Is this possible? In reply to
Quote:
if ($val2) {
return $val2 ? $val2 : 'No price found';
}

Part of that code is redundant. If you reach the line starting "return $val2..." then "if ($val2)" is true so its pointless testing it again with "return $val2 ?" .
> >