Script with null field

Hi.
I want to write a script which first sees if a particular field is
null or not and then performs action like if else.
I have written my script and I think it is failing to check if the
field is present or not.
Can anybody check if that is the problem and if yes how to solve it?
My code is at git://gist.github.com/1071290.git.

Regards.

Ok. Issue resolved.

On Jul 8, 12:13 pm, nachiket bhagwat nachiketbhag...@gmail.com
wrote:

Hi.
I want to write a script which first sees if a particular field is
null or not and then performs action like if else.
I have written my script and I think it is failing to check if the
field is present or not.
Can anybody check if that is the problem and if yes how to solve it?
My code is at git://gist.github.com/1071290.git.

Regards.