If Statement With Multiple Lines

后端 未结 5 895
清歌不尽
清歌不尽 2020-12-16 09:37

I have an if statement with multiple conditions. I cannot see them all in a single window view. Is there a way to separate them on different lines or do they ha

5条回答
  •  天涯浪人
    2020-12-16 10:42

    You can use the line continuation character _

    These are all the same:

    If Something Or  SomethingElse Or AnotherThing Then
    
    If Something Or SomethingElse _
       Or AnotherThing Then
    
    If Something Or _
       SomethingElse Or _
       AnotherThing Then
    

提交回复
热议问题