User Tools

Site Tools


Operators

This page is a WIP. There is likely to be incomplete and or missing information while the page is being built. A previous version of the Daz Script documentation, which is largely compatible with the current API, can be found here.


Arithmetic

Symbol Description
++ Increment
-- Decrement
* Multiplication
/ Division
% Modulus (Remainder)
+ Addition
- Subtraction (Negation)

Increment

Decrement

Multiplication

Division

Modulus (Remainder)

Addition

Subtraction (Negation)


Binary Bitwise

Symbol Description
<< Binary Left Shift
>> Binary Right Shift (Signed)
>>> Binary Right Shift (Unsigned)
& Binary AND
^ Binary XOR (Exclusive)
| Binary OR (Inclusive)
~ Binary NOT (Negation)

Binary Left Shift

Binary Right Shift (Signed)

Binary Right Shift (Unsigned)

Binary AND

Binary XOR (Exclusive)

Binary OR (Inclusive)

Binary NOT (Negation)


[Compound] Assignment

Symbol Description
= Simple Assignment
*= Multiplication Assignment
/= Division Assignment
%= Modulus (Remainder) Assignment
+= Addition Assignment
-= Subtraction Assignment
<<= Binary Left Shift Assignment
>>= Binary Right Shift Assignment (Signed)
>>>= Binary Right Shift Assignment (Unsigned)
&= Binary AND Assignment
^= Binary XOR Assignment (Exclusive)
|= Binary OR Assignment (Inclusive)

Simple Assignment

Multiplication Assignment

Division Assignment

Modulus (Remainder) Assignment

Addition Assignment

Subtraction Assignment

Binary Left Shift Assignment

Binary Right Shift Assignment (Signed)

Binary Right Shift Assignment (Unsigned)

Binary AND Assignment

Binary XOR Assignment (Exclusive)

Binary OR Assignment (Inclusive)


Logical

Symbol Description
< Less-than
> Greater-than
<= Less-than-or-equal
>= Greater-than-or-equal
== Equals
!= Does-not-equals
=== Strict Equals
!== Strict Does-not-equals
&& Logical AND
|| Logical OR (Inclusive)
! Logical NOT (Negation)
?: Conditional (Ternary)
, Comma

Less-than

Greater-than

Less-than-or-equal

Greater-than-or-equal

Equals

Does-not-equals

Strict Equals

Strict Does-not-equals

Logical AND

Logical OR (Inclusive)

Logical NOT (Negation)

Conditional (Ternary)

Comma


Special

Keyword
function
in
instanceof
new
delete
this
typeof

function

in

instanceof

new

delete

this

typeof