Testing for empty fields

Discussion created by lholcombe on Sep 5, 2011
Latest reply on Sep 5, 2011 by stacyrendall
I have a Python script which flags records with inappropriate values.  Unfortunately, it is also flagging records without values.  I would like to know how I can check for the existence of a value in a field.  Normally, if there is a value in this field, it would be a string.  Here's what I have currently:
if (suffval != '') and (suffval not in allowed):

the first condition is the one I'm having trouble with - the second condition seems to work fine.

I have also tried:
if (suffval is not None)

if (not len(suffval))

Thanks so much for any guidance you can provide.