Theoretically

if($Config{'print_blank_fields'} || $Form{field})

should work.  $Form should be TRUE unless it is '' or 0.  Perhaps you could
post a little more code?  

(Obviously don't break any NDA's, but it would help to see what is not
working)

-----Original Message-----
From: Luinrandir Hernsen
To: [EMAIL PROTECTED]
Sent: 4/29/02 5:43 PM
Subject: need help

This line is from a script

if ($Config{'print_blank_fields'} || $Form{$field} ne '0')

I need to change the last part (in bold) to read for both 0 and the
empty set ''
so the logic should read

if ($Config{'print_blank_fields'} || $Form{$field} ne '0' or '' )

Or to say it another way I need the following two lines to be one.
if ($Config{'print_blank_fields'} || $Form{$field} ne '0')
if ($Config{'print_blank_fields'} || $Form{$field} ne '' )


I have tried
if ($Config{'print_blank_fields'} || $Form{$field} ne '0,')
if ($Config{'print_blank_fields'} || $Form{$field} ne '0' ||
$Form{$field} ne '' )
if ($Config{'print_blank_fields'} || $Form{$field} ne '0','')
and it doen't work
help? ideas?
Thanks

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to