I was studying some vba code and came across this:
If DblBalance <> 0 Then
I can't figure out what operator this is, any help would be appreciated.
An operator is a code element that performs an operation on one or more code elements that hold values. Value elements include variables, constants, literals, properties, returns from Function and Operator procedures, and expressions.
For example, “NOT EQUAL” in VBA represents the combination of greater than and less than symbols. If both these operators are combined, then it becomes not equal, i.e., “<>. “
No, it doesn't exist in VBA.
It is the "not equal" operator, i.e. the equivalent of !=
in pretty much every other language.
Not Equal To
Before C came along and popularized !=
, languages tended to use <>
for not equal to.
At least, the various dialects of Basic did, and they predate C.
An even older and more unusual case is Fortran, which uses .NE.
, as in X .NE. Y
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With