I've got a list of ~30 fields I need to check for a value. Whats the best way to do this. Example:
if (($Field1 ne "0.00") || ($Field2 ne "0.00") || ad nauseum...) {print "hey the fields aren't empty"}
I could do:
if (($Field1 > "0") || ($Field2 > "0") || ...($Field30 > "0")) {blah}
is there a better way?
Ps: The fields aren't simply 1-30 or I'd try to do a loop of some kind. Instead they jump all over the place.
Just curious...
if (($Field1 ne "0.00") || ($Field2 ne "0.00") || ad nauseum...) {print "hey the fields aren't empty"}
I could do:
if (($Field1 > "0") || ($Field2 > "0") || ...($Field30 > "0")) {blah}
is there a better way?
Ps: The fields aren't simply 1-30 or I'd try to do a loop of some kind. Instead they jump all over the place.
Just curious...