开发者

Inequality Comparison Operator in VB?

开发者 https://www.devze.com 2023-01-29 10:58 出处:网络
In C I write an if statement like:开发者_开发技巧 if (a != 0) How do I write this != operator in VB?if a <> 0 then

In C I write an if statement like:开发者_开发技巧

if (a != 0)

How do I write this != operator in VB?


if a <> 0 then
  ' code
end if


another way :)

    Dim a As Integer = 3
    If Not (a = 0) Then
        Console.WriteLine("is not equal")
    End If
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号