如果多行语句 [英] If Statement With Multiple Lines

查看:104
本文介绍了如果多行语句的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有 if 语句,包含多个条件。我无法在一个窗口视图中看到它们。有没有办法在不同的行上分隔它们,还是必须在一行中写出它们?

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 have to be written all in one line?

推荐答案

VBA行-continuation字符是下划线 _

The VBA line-continuation character is an underscore _

if ( _
    (something) _
    or (somethingelse) _
) 

这篇关于如果多行语句的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆