【发布时间】:2021-03-01 02:35:44
【问题描述】:
我想在一个 IF 语句中使用多个 OR 语句,但显然它最终是这样的:
If x = this or x = that or x = these or x = those Then
有没有办法把它压缩成一个更小的语句? 例如
If x = {this, that, those, these}
【问题讨论】:
-
这能回答你的问题吗? VB.NET If-Else in List
标签: vb.net