don't use if...then...<br>use select case.<br><br>Select Case ListName<br>   Case 1,3,5,7,9<br>      do something<br>   Case 2,4,6,8<br>      do something else<br>End Select<br><br>hope that helps.<br><br>ben robinson<br>
<br><div class="gmail_quote">On Dec 21, 2007 10:04 AM, Steve Frost <<a href="mailto:frosts@haskins.yale.edu">frosts@haskins.yale.edu</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>Sorry, but I cannot find the syntax for this:<br>I am reading in a series of lists and I need certain variables set<br>differently depending on the list.<br>I need the correct syntax for something like the following:<br>
<br>If thelist = [1 3 5 7 9] Then<br>  do something<br>Else<br> do something else<br>End If<br><br>I have made a work-around using a series of OR statements (i.e., If<br>thelist = 1 or thelist = 3 or thelist = 7 or thelist = 9 then...) but
<br>this is silly. Can anybody help me with the proper syntax? Thanks<br><br>Steve<br><br><br></blockquote></div><br><br>
--~--~---------~--~----~------------~-------~--~----~<br>
You received this message because you are subscribed to the Google Groups "E-Prime" group. <br> To post to this group, send email to e-prime@googlegroups.com <br> To unsubscribe from this group, send email to e-prime-unsubscribe@googlegroups.com <br> For more options, visit this group at http://groups.google.com/group/e-prime?hl=en <br> -~----------~----~----~----~------~----~------~--~---<br>
<br>