Posted by Rik Wasmus on 12/06/07 23:39
On Fri, 07 Dec 2007 00:16:12 +0100, furfey@gmail.com <furfey@gmail.com> =
=
wrote:
> Is it possible to take an if contruct like this:
>
> if ($mmaaccess =3D=3D "yes") {
> print "<img src=3D'images/mma.jpg'>";
> } else {
> print "<img src=3D'images/oa.gif'>";
> }
>
> and turn the whole thing into a variable $accessimage
>
> I can't figure out how to wrap the whole thing.
$accessimage =3D $mmaaccess =3D=3D "yes" ? "<img src=3D'images/mma.jpg'>=
" : "<img =
src=3D'images/oa.gif'>";
-- =
Rik Wasmus
[Back to original message]
|