Scripting:Operators
From STNE Wiki
(Difference between revisions)
Line 18: | Line 18: | ||
| colspan="3" | Logical operators | | colspan="3" | Logical operators | ||
|- | |- | ||
- | | NOT | NOT Boolean1 | the logical inverse of the expression Boolean1 | + | | NOT || NOT Boolean1 || the logical inverse of the expression Boolean1 |
|- | |- | ||
- | | AND | Boolean1 AND Boolean2 | the logical AND of Boolean1 and Boolean2 | + | | AND || Boolean1 AND Boolean2 || the logical AND of Boolean1 and Boolean2 |
|- | |- | ||
- | | OR | Boolean1 OR Boolean2 | the logical OR of Boolean1 and Boolean2 | + | | OR || Boolean1 OR Boolean2 || the logical OR of Boolean1 and Boolean2 |
|} | |} |
Revision as of 15:27, 10 September 2010
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 | NOT Boolean1 | the logical inverse of the expression Boolean1 |
AND | Boolean1 AND Boolean2 | the logical AND of Boolean1 and Boolean2 |
OR | Boolean1 OR Boolean2 | the logical OR of Boolean1 and Boolean2 |