[Arsperl-users] Query Question
Brought to you by:
jeffmurphy
|
From: Lintner, M. <mit...@ci...> - 2006-01-09 21:09:39
|
I have a ARSPerl script that I am working with. I am trying to build a
condition off of the value of a Radio button field on a form. I want to
do something if the field in NULL. The field has a 0 and a 1 value.
I am having trouble. It seems that ARSPerl is assuming 0 to be the same
as NULL. Is this true or am I building me script incorrectly? He is the
condition I am using:
if ($PW =3D=3D "") {
print "Change PW\n"
} else {
print "Can't Change PW.\n"
}
I $PW is NULL or 0, I get the first response. If $PW is 1, I get the
second.
Thanks,
Mitch
Mitch Lintner
Analyst/Programmer
Remedy Developer
Cingular Wireless
1125 E Campbell Rd
Richardson, Texas, 75081
972-907-6965
mit...@sw...
|