Do… Loop Until with multiple conditions

前端 未结 3 399
醉酒成梦
醉酒成梦 2021-01-20 16:30

I have a quick question about which I did not find specific information on the web. I want to perform a Do...Loop Until loop, but I would like to insert more th

3条回答
  •  渐次进展
    2021-01-20 17:26

    You can use And and/or Or:

    Do
      'Your code
    Loop until condition1 And condition2
    

    And will continue all the time all conditions are met. Or will continue when one or more of the conditions are met.

    You can have any number of conditions.

提交回复
热议问题