Forums
This topic is locked
If Construction problems
Posted 26 Aug 2002 18:00:12
1
has voted
26 Aug 2002 18:00:12 Erwin Hendriks posted:
Here we go again...What's wrong with this code?
if ((Rubriek.machtiging.checked) && ((Rubriek.Banknummer == null || Rubriek.Banknummer.length == 0)) ....
A blank banknumber is accepted!!!!!
I want the bankno to be required when the checkbox is TRUE.
Help Pleez!
Replies
Replied 26 Aug 2002 20:08:22
26 Aug 2002 20:08:22 David Behan replied:
Off the top of my head I'd say it is because you have go <b>&&</b> in the middle instead of <b>&</b>.
Regards,
Dave
_________________________
WinXP : IIS 5.1 : StudioMX : ASP : VBScript
www.clicksdesign.com
Regards,
Dave
_________________________
WinXP : IIS 5.1 : StudioMX : ASP : VBScript
www.clicksdesign.com
Replied 05 Sep 2002 09:30:12
05 Sep 2002 09:30:12 Erwin Hendriks replied:
That's just a typing error. My problem again is how to evaluate certain variables/values in a if-construction.