Continue For loop

前端 未结 8 1738
面向向阳花
面向向阳花 2020-11-27 05:29

I have the following code

For x = LBound(arr) To UBound(arr)

    sname = arr(x)  
    If instr(sname, \"Configuration item\") Then  
        \'**(here i wa         


        
8条回答
  •  天涯浪人
    2020-11-27 06:18

    For the case you do not use "DO": this is my solution for a FOR EACH with nested If conditional statements:

    For Each line In lines
        If <1st condition> Then
            
            If <2nd condition> Then
                If <3rd condition> Then
                    GoTo ContinueForEach
                Else
                    
                End If
            Else
                
            End If
        Else
            
        End If
    ContinueForEach:
    Next
    

提交回复
热议问题