$str = undef;
if ($payphone ne undef) { $str = "<br>Phone: $payphone"; }
if ($payfax ne undef) { $str = $str . "<br>Fax: $payfax"; }
if ($payemail ne undef) { $str = $str . "<br>Email: $payemail"; }
if ($str ne undef) { bodyprint("$str"); }
I actually removed all the code and just made it like this:
<br>Phone: $payphone
<br>Fax: $payfax
<br>Email: $payemail
and it still seems to work. So, what i confused about is, since it works like this what was the purpose of that code? and will there be any problems the way ive left it?
any comments would be much appreciated.
cheers
linda