a question about if statement...

Results 1 to 3 of 3

Thread: a question about if statement...

  1. #1
    Join Date
    Dec 1969

    Default a question about if statement...

    I have a if statement that checks for a group number<BR><BR>if groupid=1 then <BR>...<BR><BR>elseif groupid=2 then<BR>...<BR><BR>else<BR>...<BR>end if<BR><BR>There are some customers that don&#039;t have a groupid, will they go past the first 2 conditions and go to the 3rd condition "else"??<BR>Should I have another elseif to check for non-existing groupid? If so, how can I write a condition for the elseif? Is it (else if groupid="") ??<BR>

  2. #2
    Join Date
    Dec 1969

    Default easiest way to learn is to just try it....

    test it out and you should be able to figure this one out yourself...!

  3. #3
    Join Date
    Dec 1969

    Default Talk it out loud... it's like literature ...

    It reads like an English phrase...<BR><BR>If it rains today<BR> you should stay in<BR>But if it snows<BR> you go skiing<BR>Otherwise, <BR> Just go out and bike<BR><BR>SQL is similar to this... don&#039;t you just love English 101?<BR><BR>-Vadim C.

Posting Permissions

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