Scripting:Operators
From STNE Wiki
Revision as of 15:26, 10 September 2010 by Glest Durnham (Talk | contribs)
Operator | Usage | Returns |
---|---|---|
String operators | ||
& | String1 & String2 | the concatenatenation of String1 and String 2 |
Arithmetic operators | ||
+ | Number1 + Number2 | Number1 added to Number2 |
- | Number1 - Number2 | Number2 subtracted from Number1 |
* | Number1 * Number2 | Number1 multiplied by Number2 |
/ | Number1 / Number2 | Number1 divided by Number2 |
Logical operators | ||
NOT Boolean1 | the logical inverse of the expression Boolean1 | ||
Boolean1 AND Boolean2 | the logical AND of Boolean1 and Boolean2 | ||
Boolean1 OR Boolean2 | the logical OR of Boolean1 and Boolean2 |