SirIdiot Posted February 16, 2013 Share Posted February 16, 2013 I need to know for a quest. My first guess is that GetStage != 30Means GetStage (Anything but) 30 ?? Link to comment Share on other sites More sharing options...
JcHARP Posted February 16, 2013 Share Posted February 16, 2013 Yes I believe you are right :) Link to comment Share on other sites More sharing options...
Xaranth Posted February 16, 2013 Share Posted February 16, 2013 != is programmerspeak for the logic operator 'not equal to'. It's also represented (In Visual Basic) by <> Link to comment Share on other sites More sharing options...
SirIdiot Posted February 16, 2013 Author Share Posted February 16, 2013 So I was basically right yeah? Link to comment Share on other sites More sharing options...
Xaranth Posted February 16, 2013 Share Posted February 16, 2013 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 More sharing options...
Recommended Posts