More help needed

Discussion in 'JavaScript' started by valleyjim, Sep 20, 2005.

  1. #1
    if ((hours >= 7) && (minutes <=22))
    document.write("bla bla );
    if ((hours >= 7) && (minutes >22))
    ?
    I want this to do nothing so it won't write over the document write.
    what do I do here?
     
    valleyjim, Sep 20, 2005 IP
  2. Arnica

    Arnica Peon

    Messages:
    320
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Don't use the second if statement at all if you don't need it to do anything. ;)
     
    Arnica, Sep 20, 2005 IP
  3. Amos

    Amos Peon

    Messages:
    224
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Or I believe you can just do a comment or something of that sort which will just skip over it.
     
    Amos, Sep 20, 2005 IP