Category:LSL Operators
This is a historical wiki category. Explore the current topic guides →
LSL Header:
{{LSL Header|ml=*}}RightToc: {{RightToc}}Page recreated to house the future revision of the LSL_Operators page into categorized Content. Please do not delete.
if you're looking for the current version, it may be found at LSL_Operators.
void-box:
{{void-box
|title=Operator Precedence (Order of Operations)
|content=
{{{!}} bgcolor="#FFFFFF" border="1" cellspacing="2" cellpadding="6"
{{!}}- bgColor="#A7C1F2"
! Operator
! Description
! Direction
{{!}}- bgColor="#E0E0E0"
{{!}} ,
{{!}}{{!}} Separator
{{!}}{{!}} Left to Right{{Footnote|handle=1|Separators promote ALL operators to the left until the first unmatched, from its position, open-bracket or open-parenthesis. This precedence ONLY applies within the brackets/parenthesis containing it}}
{{!}}-
{{!}}
++<br>
--<br>
.<br>
{{!}}{{!}}
Increment<br>
Decrement<br>
Element Selector<br>
(also Variable Evaluation)
{{!}}{{!}} Right to Left
{{!}}- bgColor="#E0E0E0"
{{!}}
=<br>
+=<br>
-=<br>
/=<br>
%=<br>
*=
{{!}}{{!}}
Direct Assignment<br>
Addition/Concatenation Assignment<br>
Subtraction Assignment<br>
Division Assignment<br>
Modulo/Cross-Product Assignment<br>
Multiplication/Dot-Product Assignment
{{!}}{{!}}
Right to Left{{Footnote|handle=2|Assignment operators promote ALL operators to the right, from its position, until the first un-bracketed/parenthesized separator, unmatched close bracket or close parenthesis, or semicolon. This precedence ONLY applies within the brackets/parenthesis containing it}}
{{!}}-
{{!}}
()<br>
[]
{{!}}{{!}}
Parenthesis<br>
[[List|List Constructor]]
{{!}}{{!}} Inner to Outer
{{!}}-
{{!}}
(type)<br>
~<br>
!<br>
-
{{!}}{{!}}
[[Typecast]]<br>
Bitwise NOT<br>
Logical NOT<br>
Negation
{{!}}{{!}} Right to Left
{{!}}-
{{!}}
/<br>
%<br>
*
{{!}}{{!}}
Division<br>
Modulus<br>
Multiplication
{{!}}{{!}} Left to Right
{{!}}-
{{!}}
-<br>
+
{{!}}{{!}}
Subtraction<br>
[[LSL_Addition|Addition/Concatenation]]
{{!}}{{!}} Left to Right
{{!}}-
{{!}}
<<<br>
>>
{{!}}{{!}}
Bitwise Shift Left<br>
Bitwise Shift Right
{{!}}{{!}} Left to Right
{{!}}-
{{!}}
<<br>
><br>
<=<br>
>=
{{!}}{{!}}
Less Than<br>
Greater Than<br>
Less Than or Equal<br>
Greater Than or Equal
{{!}}{{!}} Left to Right
{{!}}-
{{!}}
==<br>
!=
{{!}}{{!}}
Equivalent<br>
NOT Equivalent
{{!}}{{!}} Left to Right
{{!}}-
{{!}} &
{{!}}{{!}} Bitwise AND
{{!}}{{!}} Left to Right
{{!}}-
{{!}} ^
{{!}}{{!}} Bitwise eXclusive OR
{{!}}{{!}} Left to Right
{{!}}-
{{!}} |
{{!}}{{!}} Bitwise OR
{{!}}{{!}} Left to Right
{{!}}-
{{!}}
&&<br>
||
{{!}}{{!}}
Logical AND<br>
Logical OR
{{!}}{{!}} Left to Right{{Footnote|handle=3|There is no Short Circuiting of Logical Operators in LSL, both operands will be evaluated regardless.}}
{{!}}}
=== Special Notes ===
{{Footnotes}}
}}void-box:
{{void-box
|title= Logical Operators
|content=
Logical Operators are operators those result is either TRUE or FAlSE.
* insert truth tables
}}void-box:
{{void-box
|title=Bitwise Operators
|content=
Bitwise Operators are similar to Logical Operators, but act on all bits of an integer simultaneously as if they were each a Boolean value.
* flesh this out
}}Original wiki source
Some wiki templates and tables need their original context. View this article on the Second Life Wiki. Technical wording and examples are retained from the source; historical guidance may differ from current behavior.