pepertje Posted July 17, 2015 Posted July 17, 2015 Okay, so I've been tinkering around with more complex scripts lately, and for that I need to know what the symbols in the prefixed boxes mean. Right now I've been able to figure out most of them: == means "equal" >= means "more or equal" =< means "less or equal" > means "more" < means "less" Â The only symbol I haven't figured out yet is "!=", any chance that means "does not equal"?
Guest Posted July 17, 2015 Posted July 17, 2015 Hello. yes these are the common comparison operators. Â A double equal is to define the comparison equal operator (as single equal symbol is used for assignments.) Â the exclamation point is used to negate. So != means "Not equal to". Â Warning about =<, it should be <=. Â
Elei-Mi-Shill Posted July 18, 2015 Posted July 18, 2015 "!" is the notation in C++ or Java for NOT.!false==trueso "!=" means "not equal".I'm also pretty sure that the ! operator will work in TES scripting language. But I don't know exactly how it computates. Â This syntax comes from C and Java languages.
Guest Posted July 18, 2015 Posted July 18, 2015 There are slight differences in the different versions of TES scripting languages. Â Papyrus for Skyrim, that includes objects, uses these automatic conversions. Â 1.0 == 1 (float cast to int) 0 == "" (zero is cast to an empty string) 0 == None (zero is cast to a null object) false == 0 == None == "" (normal casts) Â I think Fallout 3 has a very similar conversion system, but I am not sure. Â
Halstrom Posted July 18, 2015 Posted July 18, 2015 don't forget the confusing bit where == is used in comparisons but you use just = in setting values, if you do either wron you don't get an error, it just won't work the way you want it to.
Odessa Posted July 20, 2015 Posted July 20, 2015 For a complete list of operators in NVSE, see: http://geck.bethsoft.com/index.php?title=NVSE_Expressions
Womb Raider Posted July 23, 2015 Posted July 23, 2015 Dead Space 2 reference... I see what you did there...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.