This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
en:operators [2016/05/09 20:52] admin |
en:operators [2016/08/09 17:59] admin |
||
---|---|---|---|
Line 8: | Line 8: | ||
^Arithmetic Operators^^^^ | ^Arithmetic Operators^^^^ | ||
^Operator^Name^Example^Comments^ | ^Operator^Name^Example^Comments^ | ||
- | |+|Addition|a + b|add two numeric values. | + | |+|Addition|a + b|add two numeric values. |
|-|Subtraction|a - b|subtract two numeric values| | |-|Subtraction|a - b|subtract two numeric values| | ||
|*|Multiplication|a * b| | | |*|Multiplication|a * b| | | ||
Line 19: | Line 19: | ||
|--|Decrrement Suffix|a--|Return the value of the variable and then decrement the variable by one for the next time it is accessed. (may be applied ONLY to numeric variables or array elements) < | |--|Decrrement Suffix|a--|Return the value of the variable and then decrement the variable by one for the next time it is accessed. (may be applied ONLY to numeric variables or array elements) < | ||
\\ | \\ | ||
- | ^Comparison Operators^^^^ | ||
- | ^Operator^Name^Example^Comments^ | ||
- | |=|Equal|a = b|Returns true of two values are equal| | ||
- | |%%< | ||
- | |%%> | ||
- | |%%< | ||
- | |%%> | ||
- | |%%<> | ||
- | \\ | + | {{page> |
- | ^Logical Operators^^^^ | + | |
- | ^Operator^Name^Example^Comments^ | + | |
- | |NOT|Logical Negation|NOT a| | | + | |
- | |AND|Logical Conjunction|a AND b| | | + | |
- | |OR|Logical Disjunction|a OR b| | | + | |
- | |XOR|Logical Exclusive Disjunction|a XOR b| | | + | |
- | \\ | + | {{page>comparisonoperators}} |
- | ^Bitwise Operators^^^^ | + | |
- | ^Operator^Name^Example^Comments^ | + | |
- | |%%~%%|Bitwide Negation|~a| | | + | |
- | |%%& | + | |
- | |%%|%%|Bitwise Disjunction|a %%|%% b|Returns the bits of integer a or integer b.| | + | |
- | Bitwise operators only work with long integer values (since 1.99.99.19) in the range of −2, | + | {{page> |
- | \\ | + | |
- | ^String Operators^^^^ | + | {{page>bitwiseoperators}} |
- | ^Operator^Name^Example^Comments^ | + | |
- | |; | + | {{page>stringoperators}} |
- | |+|Concatenation|a + b|Appends b to the end of a (If either (or both) a and b are not numbers, see [[IsNumeric|IsNumeric]]). < | + | |
- | |& | + | |
- | \\ | ||
^Order of Operations^^^ | ^Order of Operations^^^ | ||
^Level^Operators^Category/ | ^Level^Operators^Category/ | ||
Line 68: | Line 46: | ||
\\ | \\ | ||
< | < | ||
- | < | + | < |
- | < | + | < |