Scripting:Operators
From STNE Wiki
(Difference between revisions)
| Line 1: | Line 1: | ||
{| cellpadding="3" | {| cellpadding="3" | ||
| - | ! Operator !! | + | ! Operator !! Syntax |
|- | |- | ||
| - | | colspan="3" | String operators | + | | colspan="3" style="font-style:italic;" | String operators |
|- | |- | ||
| - | | | + | | Concatenation || a & b |
|- | |- | ||
| - | | colspan="3" | | + | | colspan="3" style="font-style:italic;" | Comparison operators |
|- | |- | ||
| - | | | + | | Equal to || a = b |
|- | |- | ||
| - | | | + | | Not equal to || a = b |
|- | |- | ||
| - | | | + | | Greather than || a > b |
|- | |- | ||
| - | | | + | | Less than || a < b |
|- | |- | ||
| - | | | + | | Greather than or equal to || a >= b |
|- | |- | ||
| - | | | + | | Less than or equal to || a <= b |
|- | |- | ||
| - | | | + | | Reference equal to || a Is b |
|- | |- | ||
| - | | | + | | colspan="3" style="font-style:italic;" | Arithmetic operators |
| + | |- | ||
| + | | Addition || a + b | ||
| + | |- | ||
| + | | Subtraction || a - b | ||
| + | |- | ||
| + | | Multiplication || a * b | ||
| + | |- | ||
| + | | Division || a / b | ||
| + | |- | ||
| + | | colspan="3" style="font-style:italic;" | Logical operators | ||
| + | |- | ||
| + | | Logical NOT || NOT a | ||
| + | |- | ||
| + | | Logical AND || a AND b | ||
| + | |- | ||
| + | | Logical OR || a OR b | ||
| + | |||
|} | |} | ||
Revision as of 15:35, 10 September 2010
| Operator | Syntax | |
|---|---|---|
| String operators | ||
| Concatenation | a & b | |
| Comparison operators | ||
| Equal to | a = b | |
| Not equal to | a = b | |
| Greather than | a > b | |
| Less than | a < b | |
| Greather than or equal to | a >= b | |
| Less than or equal to | a <= b | |
| Reference equal to | a Is b | |
| Arithmetic operators | ||
| Addition | a + b | |
| Subtraction | a - b | |
| Multiplication | a * b | |
| Division | a / b | |
| Logical operators | ||
| Logical NOT | NOT a | |
| Logical AND | a AND b | |
| Logical OR | a OR b | |