Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我试图理解这条线if variable <> 1 then。
if variable <> 1 then
我有一个猜测,基于不同语言的类似问题,这<>是另一种说法!=,意思是不等于。
<>
!=
我这样说对吗?
是的,根据PICBASIC PRO™ 编译器手册,<>比较运算符等同于!=. 认为<>是“小于或大于”(但不等于)。
不相等。在类 C 编程语言中,这类似于!=.
您说得非常正确:<>运算符在 BASIC 方言中表示not equal.
not equal