Specifications

Table Of Contents
Adobe Photoshop CS6
JavaScript Scripting Reference JavaScript Resource 191
Operator precedence is shown in the following table. Operators are listed with the highest order of
precedence at the top of the table
The grammar provides variables and constants that you can use in the
<enableinfo> expression. The
following table provides a list of the constants that are available.
<ident> := (alpha | "_") {alpha | digit | "_" }
<mulOperator> := "*" | "/"
<addOperator> := "+" | "-"
<equalityOperator> := "==" | "!="
<relationOperator> := "<" | "<=" | ">=" | ">"
<inFunction> := "in" "(" <simpleExpression> {"," <simpleExpression> } ")"
Operator Description
||
Or
&&
And
+ -
Addition or subtraction
* /
Multiply or divide
< <= >= >
Less than, less than or equal, greater than or equal, greater than
== !=
Equals, or does not equal.
(..) in() max() min()
unary + - !
Functions
Unary operators: increment, decrement, not
Constant Name Description
true
Boolean true
false
Boolean false
BitmapMode
Bitmap mode.
GrayScaleMode
Grayscale mode, 8 bit depth.
IndexedMode
Indexed color mode.
RGBMode
RGB color mode.
CMYKMode
CMYK color mode.
HSLMode
HSL color mode.
HSBMode
HSB color mode
MultiChannelMode
Multichannel mode.
DuotoneMode
Duotone mode.
LabMode
Lab color mode.