<html>
<body>
<br>
Google can be your friend:<br><br>
<h3><b>Using If...Then...Else Statement<br><br>
</b></h3><pre>      ' Dimension the variable.
      Dim x As Integer
      ' Place a value in x.
      x = Int(Rnd * 100)
      ' Display the value of x.
      MsgBox "The value of x is "
& x & "."
      ' Test to see if x less than or equal to
10.
      If x <= 10 Then
         ' Display a message
box.
         MsgBox "X is
<=10"
      ' Test to see if x less than or equal to
40 and greater than 10.
      ElseIf x <= 40 And x > 10 Then
         MsgBox "X is
<=40 and > 10"
      ' Test to see if x less than or equal to
70 and greater than 40.
      ElseIf x <= 70 And x > 40 Then
         MsgBox "X is
<=70 and > 40"
      ' Test to see if x less than or equal to
100 and greater than 70.
      ElseIf x <= 100 And x > 70 Then
         MsgBox "X is <=
100 and > 70"
      ' If none of the above tests returned
true.
      Else
         MsgBox "X does not
fall within the range"
      End If
 

<x-tab>        </x-tab><x-tab>
        </x-tab><x-tab>
        </x-tab><x-tab>
        </x-tab>



</pre>At 04:47 PM 20/10/2011, you
wrote:<blockquote type=cite class=cite cite="">The E-basic help doesn't
say whether an if-then statement can have<br>
multiple conditions.  Seems limiting to not have that sort of<br>
functionality.<br><br>
-Nick<br><br>
On Oct 19, 11:15 pm, Peter Quain <pqu...@une.edu.au> wrote:<br>
> try searching e-basic help for "If...Then...Else
(statement)". Note<br>
> the conditions under which you need to close the conditional with
"End If"<br>
><br>
> At 04:05 PM 20/10/2011, you wrote:<br>
><br>
><br>
><br>
><br>
><br>
><br>
><br>
> >I'm having trouble with the below code.  E-Prime seems to
want a<br>
> >'then' statement immediately following the 'if' statement:<br>
><br>
> >if present.RESP = "z" and strHit2 = "aHi" or
strHit2 = "aLo" strHit2 =<br>
> >"aMed" then<br>
>
>                
Confidence.RESP = strHit2<br>
><br>
> >If one response on the present slide is selected, I just want
E-Prime<br>
> >to allow one of the three responses in the string hits. 
How should<br>
> >this code look?<br>
><br>
> >--<br>
> >You received this message because you are subscribed to the
Google<br>
> >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<br>
> >e-prime+unsubscribe@googlegroups.com.<br>
> >For more options, visit this group at<br>
>
><a href="http://groups.google.com/group/e-prime?hl=en" eudora="autourl">
http://groups.google.com/group/e-prime?hl=en</a>.<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
<a href="http://groups.google.com/group/e-prime?hl=en" eudora="autourl">
http://groups.google.com/group/e-prime?hl=en</a>.</blockquote></body>
</html>

<p></p>

-- <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 />