Jump to content

The symbols, what do they mean?


pepertje

Recommended Posts

Posted

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"?

Posted

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 <=.

 

Posted

"!" is the notation in C++ or Java for NOT.

!false==true

so "!=" 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.

Posted

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.

 

Posted

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.

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

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