Not equal to

The Rhinoscript documentation say to use “!=” for the not-equal-to operator. I’ve written VB for years, and not equal to is normally “<>”. If I type “!=” into Rhino’s script editor, it automatically changes it to “=” (exactly the opposite of what I intend), so apparently the documentation is wrong. Am I correct that “<>” is the proper operator in Rhinoscript for not-equal-to?

See here:

https://developer.rhino3d.com/guides/rhinoscript/primer-101/4-operators-and-functions/

Rhinoscript (VB) uses <>
Python uses !=

So yes, that does appear to be wrong.

In Python, you can use both != or <> for not equal.

However, note that != is preferred where <> is deprecated.

Hmmm … looks like the Python operator table is shown there instead of the VBS one … :confused: