Results 1 to 2 of 2

Thread: Compare numbers using javascript

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Feb 2002
    Location
    Hampton Beach
    Posts
    513

    Question Compare numbers using javascript

    Using Javascript how can I write this:

    if Time1 > 0 and Time2 = 0 then
    msgbox

  2. #2
    Frenzied Member
    Join Date
    Feb 2001
    Posts
    1,140
    Code:
    if (Time1 > 0 && Time2 == 0 ) {
      alert("Foo");
    }
    I think. I could be wrong. Double check the doco listed in the sig below.
    Travis, Kung Foo Journeyman
    As always, RTFM.

    WWW Standards: HTML 4.01, CSS Level 2, ECMA 262 Bindings to DOM Level 1, JavaScript 1.3 Guide and Reference
    Perl: Learn Perl, Llama, Camel, Cookbook, Perl Monks, Perl Mongers, O'Reilly's Perl.com, ActiveState, CPAN, TPJ, and use Perl;
    YBMS, but Mozilla doesn't.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width