IF statement syntax

Results 1 to 2 of 2

Thread: IF statement syntax

  1. #1
    Join Date
    Dec 1969

    Default IF statement syntax

    I have a condition with multiple comparisons and need some help... basically<BR><BR>IF a=b or a=c or a=d or a=e then <BR>do something<BR>end if<BR><BR>what is the proper syntax for an "in" statement? i can&#039;t seem to get anything to work...<BR><BR>IF a IN (b,c,d,e) THEN<BR>do something<BR>end if<BR><BR>thanks in advance!

  2. #2
    Join Date
    Dec 1969

    Default RE: IF statement syntax

    I don&#039;t think you actually CAN do this in VBScript.<BR><BR>You&#039;d have to use a SELECT CASE statement. Of course, you could click the "VBScript Reference" link on the left and look up the syntax yourself...<BR><BR>Craig.

Posting Permissions

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