Scripting:Operators

From STNE Wiki

(Difference between revisions)
Jump to: navigation, search
Line 4: Line 4:
| colspan="3" | String operators
| colspan="3" | String operators
|-
|-
-
| & || String1 & String2 || The concatenatenation of String1 and String 2
+
| & || String1 & String2 || the concatenatenation of String1 and String 2
|-
|-
| colspan="3" | Arithmetic operators
| colspan="3" | Arithmetic operators
Line 15: Line 15:
|-
|-
| / || Number1 / Number2 || Number1 divided by Number2
| / || Number1 / Number2 || Number1 divided by Number2
 +
|-
 +
| colspan="3" | 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
|}
|}

Revision as of 15:26, 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 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
Personal tools