if statement

Results 1 to 3 of 3

Thread: if statement

  1. #1
    Join Date
    Dec 1969

    Default if statement

    I am not getting the correct results with this statement what is wrong:<BR>if (rs1(0)&#060;&#062;k and rs1(1)&#060;&#062;j) then<BR>a<BR>else<BR>b<BR>end if<BR><BR>if rs1(0) and k are not equal but rs1(1) and j are equal then it goes to b instead of a

  2. #2
    Evel Knievel Guest

    Default RE: if statement

    Yeah, like it will do.<BR><BR>It will only go to a if both statements are true. Ie<BR><BR>rs(0) and k are not equal AND rs(1) and j are not equal

  3. #3
    Join Date
    Dec 1969

    Default RE: if statement

    Because you have an AND in your statement BOTH conditions MUST be met to got to a otherwise you are telling it to got to b.

Posting Permissions

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