>- see footer for list info -<
You are both gentlemen. I can go back to sleep now, thanks.

On 21/04/06, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
> >- see footer for list info -<
> You can also do something like this...
>
> numArray = [1,0,1]; //or whatever your values are
> zeroCount = 0;
> for (var x = 0; x < numArray.length; x ++) {
>         if (numArray[x] == 0) zeroCount ++;
> }
> if (zeroCount < numArray.length && zeroCount > 0) alert("There are " +
> zeroCount + " entries with a zero value");
>
>
>
>
> James Constable
> Web Developer
>
> mailto:[EMAIL PROTECTED]
> Tel: 0141 575 9700
> Fax: 0141 575 9600
>
> http://www.alienationdesign.co.uk
> Creative solutions in a technical world
>
> e-Mark e-Business Supplier Certification
> Macromedia Alliance Partner
> [EMAIL PROTECTED] 2003 Regional Winner
>
> Alienation Design is a Limited company (Alienation Ltd) registered in
> Scotland SC195965. This e-mail message is confidential and for use by the
> addressee only. Internet e-mails are not necessarily secure. Alienation
> Design does not accept responsibility for changes made to this message
> after it was sent.
>
> [EMAIL PROTECTED] wrote on 21/04/2006 10:12:11:
>
> > >- see footer for list info -<
> > if (array[1] == array[2] == array[3])
> > // not sure that'll work, if not try
> > if ((array[1] == array[2]) && (array[1] == array[3]))
> > {
> >   // do nothing
> > }
> > elseif (
> >
> > ((array[1] == 0) && (array[2] != 0) && (array[3] != 0))
> >  ||
> > ((array[2] == 0) && (array[1] != 0) && (array[3] != 0))
> >  ||
> > ((array[3] == 0) && (array[1] != 0) && (array[2] != 0))
> > )
> > {
> >   alert('one member has a value of zero but the others do not'));
> > }
> > elseif (
> > ((array[1] == 0) && (array[2] == 0) && (array[3] != 0))
> >  ||
> > ((array[1] == 0) && (array[2] != 0) && (array[3] == 0))
> >  ||
> > ((array[1] != 0) && (array[2] == 0) && (array[3] == 0))
> > )
> > {
> >   alert('two members have a value of zero but the other does not');
> > }
> >
> > Duncan Cumming
> > New Media Developer
> > Customer Relations Management / Education
> > Fife Council
> > 700 4105 / 01592 414105
> >
> >
> > **********************************************************************
> > This email and any files transmitted with it are confidential and
> > intended solely for the use of the individual or entity to whom they
> > are addressed and should not be disclosed to any other party.
> > If you have received this email in error please notify your system
> > manager and the sender of this message.
> >
> > This email message has been swept for the presence of computer
> > viruses but no guarantee is given that this e-mail message and any
> > attachments are free from viruses.
> >
> > Fife Council
> > Tel: 08451 55 00 00
> > ************************************************
> >
> > _______________________________________________
> >
> > For details on ALL mailing lists and for joining or leaving lists, go to
>
> > http://list.cfdeveloper.co.uk/mailman/listinfo
> >
> > --
> > CFDeveloper Sponsors:-
> > >- Hosting provided by www.cfmxhosting.co.uk -<
> > >- Forum provided by www.fusetalk.com -<
> > >- DHTML Menus provided by www.APYCOM.com -<
> > >- Lists hosted by www.Gradwell.com -<
> > >- CFdeveloper is run by Russ Michaels, feel free to volunteer your help
> -<
> _______________________________________________
>
> For details on ALL mailing lists and for joining or leaving lists, go to
> http://list.cfdeveloper.co.uk/mailman/listinfo
>
> --
> CFDeveloper Sponsors:-
> >- Hosting provided by www.cfmxhosting.co.uk -<
> >- Forum provided by www.fusetalk.com -<
> >- DHTML Menus provided by www.APYCOM.com -<
> >- Lists hosted by www.Gradwell.com -<
> >- CFdeveloper is run by Russ Michaels, feel free to volunteer your help -<
>
_______________________________________________

For details on ALL mailing lists and for joining or leaving lists, go to 
http://list.cfdeveloper.co.uk/mailman/listinfo

--
CFDeveloper Sponsors:-
>- Hosting provided by www.cfmxhosting.co.uk -<
>- Forum provided by www.fusetalk.com -<
>- DHTML Menus provided by www.APYCOM.com -<
>- Lists hosted by www.Gradwell.com -<
>- CFdeveloper is run by Russ Michaels, feel free to volunteer your help -<

Reply via email to