Category:LSL Operators
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: |