Jump to content

What is !=


SirIdiot

Recommended Posts

Yes. More specifically.

 

GetStage != 30 is a boolean expression. 30 is a constant, here, and GetStage returns a value. The code will evaluate the expression at the time it is called, and then return true (1) or false (0). Since the operator is != (not equal to), the expression returns 0 (false) ONLY if GetStage returns 30.

 

I.E. 30 != 30 is obviously false. Any other value from getStage will cause the expression to be true.

 

Valid Comparison and Logic Operators in NVScript:

 

!= - Not Equal To

== - Equal To

< - Less than

> - Greater than

<= - Less than or equal to

>= - Greater than or equal to

&& - AND

|| - OR

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...