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 - 05-22-2025, 12:43 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Just in case anyone doesn't fully appreciate this forum... Pete 8 869 09-06-2025, 06:37 PM
Last Post: SMcNeill
  Select Case idea... Unseen Machine 9 952 08-30-2025, 12:00 AM
Last Post: Unseen Machine
  Select All Dimster 2 738 01-16-2023, 03:23 AM
Last Post: PhilOfPerth

Forum Jump:


Users browsing this thread: 1 Guest(s)