如果字符串不相等,则VB.NET中的正确操作员是什么



我尝试了类似的东西

Do Until !test.equals("1234") Or !test.equals("xyxyxyx")  
... 
Loop

如何在vb.net?

中写下它

!用其他语言不是VB.NET

Do Until Not test.equals("1234") Or Not test.equals("xyxyxyx")  

我相信这就是您要寻找的:

https://learn.microsoft.com/en-us/dotnet/visual-basic/language-reference//pareators/operators/comparison-operators

Do Until test <> 1234 Or test <> "xyxyxyx"
... 
Loop

尝试此 Do While test <> "1234" or test <> "xyxyxyx" //your code here... Loop

来自Microsoft文档

做循环语句(Visual Basic)

Visual Basic中的比较操作员

最新更新