18.01.2015 Views

Technical Reference Manual - InduSoft

Technical Reference Manual - InduSoft

Technical Reference Manual - InduSoft

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Appendix: Built-in Scripting Language<br />

Logic and arithmetic operators<br />

The built-in scripting language supports the following logic and arithmetic operators.<br />

Logic operators<br />

Operator Usage Description<br />

AND A AND B TRUE if A and B are both TRUE<br />

OR A OR B TRUE if A is TRUE, or B is TRUE, or both<br />

XOR A XOR B TRUE if A is TRUE, or B is TRUE, but not both<br />

NOT NOT A TRUE if A is FALSE<br />

= X = Y TRUE if X is equal to Y<br />

> X > Y TRUE if X is greater than Y<br />

>= X >= Y TRUE if X is greater than or equal to Y<br />

< X < Y TRUE if X is less than Y<br />

n X >> Y Rotate n bits to right:<br />

0110 (decimal 6)<br />

ROTATE RIGHT<br />

= 0011 (decimal 3)<br />

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!