Difference between revisions of "Category:LSL Operators"
Jump to navigation
Jump to search
Void Singer (talk | contribs) m (placeholder for rework of operators page. yes I know it hasn't been done yet.) |
Void Singer (talk | contribs) m (rough draft start) |
||
Line 3: | Line 3: | ||
if you're looking for the current version, it may be found at [[LSL_Operators]]. | if you're looking for the current version, it may be found at [[LSL_Operators]]. | ||
== Operator Precedence == | |||
current rough draft of precedence | |||
{| bgcolor="#FFFFFF" border="1" cellspacing="2" cellpadding="6" | |||
|- bgColor="#A7C1F2" | |||
! Operator | |||
! Notes | |||
|- | |||
| () | |||
|| Parenthesis: | |||
all operation within have higher precedence than those outside | |||
|- | |||
| (list)<br>(integer)<br>(float)<br>(vector)<br>(rotation)<br>(string)<br>(key)<br>++(prefix)<br>--(prefix)<br>~<br>-<br>! | |||
|| Prefix Operators: | |||
When combined together, order of execution takes precedence (- is negation in this context not subtraction) | |||
|- | |||
| /<br>%<br>*<br>&<br><nowiki>|</nowiki><br>^ | |||
|| Division, Multiplication, and Bitwise operators: | |||
|- | |||
| +<br>- | |||
|| Addition and Subtraction Operators: | |||
(- is subtraction in this context not negation) | |||
|- | |||
| &&<br><nowiki>||</nowiki><br>==<br>!=<br><=<br>>=<br>><br>< | |||
|| Logical Operators | |||
order of execution takes precedence when multiple operators of this type are in the same operation | |||
|- | |||
| =<br>+=<br>-=<br>/=<br>%=<br>*= | |||
|| Assignment Operators: | |||
|- | |||
| (postfix)++<br>(postfix)-- | |||
|| Postfix Operators: | |||
|-} | |||
== Order of Execution == |
Revision as of 16:30, 8 January 2010
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
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.
Operator Precedence
current rough draft of precedence
Order of Execution
Operator | Notes |
---|---|
() | Parenthesis:
all operation within have higher precedence than those outside |
(list) (integer) (float) (vector) (rotation) (string) (key) ++(prefix) --(prefix) ~ - ! |
Prefix Operators:
When combined together, order of execution takes precedence (- is negation in this context not subtraction) |
/ % * & | ^ |
Division, Multiplication, and Bitwise operators: |
+ - |
Addition and Subtraction Operators:
(- is subtraction in this context not negation) |
&& || == != <= >= > < |
Logical Operators
order of execution takes precedence when multiple operators of this type are in the same operation |
= += -= /= %= *= |
Assignment Operators: |
(postfix)++ (postfix)-- |
Postfix Operators: |