Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Using _Andalso with Select Case
#4
Thanks very much for your suggestions on a workaround for        Case is > A AndAlso A < C .

I find I prefer a Select Case than an IF..THEN decision structure. I was also thinking I may be able to create a workaround if there was a Select Case True, but doesn't appear that that is in the Select Case arsenals. 

The ability to short circuit a decision with multiple conditions has been a great addition to the Logical Operators and I use it a lot with IF...THEN. It just occurred to me that I haven't tried more than one other condition, I wonder how _Andalso works with many multiple conditions? For example:

If A>B _Andalso B>C _Andalso C>D _Andalso D=>A THEN Print "This will never work"

Thanks again for your suggestions and comments.
Reply


Messages In This Thread
Using _Andalso with Select Case - by Dimster - 05-21-2025, 03:48 PM
RE: Using _Andalso with Select Case - by Dimster - Yesterday, 12:43 PM



Users browsing this thread: 1 Guest(s)