Re: [Arsperl-users] Query Question
Brought to you by:
jeffmurphy
|
From: Jeff M. <jcm...@je...> - 2006-01-09 21:28:43
|
On Mon, 2006-01-09 at 16:05 -0500, Lintner, Mitchell wrote:
> 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:
>
print "<$PW>\n";
and see what that yields. it should be undef for NULL, 0 or 1.
> if ($PW == "") {
> 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...
|