I am aware that I can do this:
I am going to be a plain about this for clarity.
(Assume Grade = 8)
I know I can do this:
Select Case GradeEnd select
Print Res$
End
That is, when a CASE clause contains multiple tests separated by commas, the logical OR is performed. Question: Can I make a SELECT CASE statement using the logical AND?? I.e., can I do this:?
Assume X = 75
Select Case XEnd Select
Print Res$
Is that possible?
Thank you.
Robert
I am going to be a plain about this for clarity.
(Assume Grade = 8)
I know I can do this:
Select Case Grade
Case 2, 4, 6, 8
Res$="EVEN"
Case 1, 3, 5, 7
Res$="ODD"
Print Res$
End
That is, when a CASE clause contains multiple tests separated by commas, the logical OR is performed. Question: Can I make a SELECT CASE statement using the logical AND?? I.e., can I do this:?
Assume X = 75
Select Case X
Case >70, AND <100
Res$="PASS! Congratulations!!
Case >0, AND < 71
Res$="FLUNKO! Go to teacher for punishment!"
Case < 1
Res$="Report to office. You are being sent back a grade."
Print Res$
Is that possible?

Thank you.
Robert
Comment