Operator predecence

Started by easymeat {sfx}, March 03, 2016, 07:06:57 PM

Previous topic - Next topic

easymeat {sfx}

where can I find out more about these  I found this on Rjukan project site. what does a "!" mean? It doesn't explain what they do.

Operator predecence


All operators are executed in a special order, as some have predecence over others.


The operators are listed in order of evaluation priority, highest first:

* / %
+ -
< > <= >=
== !=
&
^
|
&&
||

These predecence rules will govern how complex statement are evaluated.

for example this from setup.scr

   if(level.HTR_setup !=1) whats this mean. !=1
   {
      level.HTR_setup = 1

Elgan {sfx}