E
Ed
I need help with the if statement below. What I need instead of three if
statements is one if and two "or" or something similar. Pseudo code would be
if
$areacode is blank or
$exchange is blank or
$phone is blank
then
$er_phone = $er_message
$er_count = $er_count + 1
T.I.A.
Ed
----------------------------------------------------
if ($areacode eq "") {
$er_areacode = $er_message;
$er_count = $er_count + 1
}
if ($exchange eq "") {
$er_exchange = $er_message;
$er_count = $er_count + 1
}
if ($phone eq "") {
$er_phone = $er_message;
$er_count = $er_count + 1
}
statements is one if and two "or" or something similar. Pseudo code would be
if
$areacode is blank or
$exchange is blank or
$phone is blank
then
$er_phone = $er_message
$er_count = $er_count + 1
T.I.A.
Ed
----------------------------------------------------
if ($areacode eq "") {
$er_areacode = $er_message;
$er_count = $er_count + 1
}
if ($exchange eq "") {
$er_exchange = $er_message;
$er_count = $er_count + 1
}
if ($phone eq "") {
$er_phone = $er_message;
$er_count = $er_count + 1
}