Results 1 to 4 of 4

Thread: Simple If Loop Question

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Aug 2002
    Location
    Singapore
    Posts
    254

    Simple If Loop Question

    Hi guys,

    got really a simple question what is the syntax in making a IF statement check 2 condition and 2 condition must be Valid.


    if(Opt==2,i==1) ????

  2. #2
    Addicted Member
    Join Date
    Apr 2001
    Location
    Ottawa, Canada
    Posts
    181
    Code:
    if (Opt==2&&i==1) {
    
    }
    use the && (and) operator, both conditions must be true for it to be true..

    --770

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Aug 2002
    Location
    Singapore
    Posts
    254
    thx delta

  4. #4
    Addicted Member
    Join Date
    Apr 2001
    Location
    Ottawa, Canada
    Posts
    181
    no prob (glad to finally know a bit to help someone)

    --770

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