in reply to passing data to variable in if statment
Are you sure WIND_GUST_MPH contains the empty string and not undef? In either case, you can use
if ($gust) { $gusting ="gusting to $gust"; } else { $gusting ="not gusting"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: passing data to variable in if statment
by stuffy (Monk) on May 06, 2008 at 21:13 UTC | |
by GrandFather (Saint) on May 07, 2008 at 00:53 UTC |