Servertec | Operators

Content Introduction Release Notes Features FAQs Requirements Installation Change Log Future Plans Knowledge Base Reference Manual Conventions Scriptlets Data Types Constants Variables Procedures Operators Object [.] Expression [( )] Unary Not [!] Unary Plus [+] Unary Minus [-] Multiplication [*] Division [/] Addition [+] Subtraction [-] Concatenation [+] Less Than [<] Greater Than [>] Less Than Or Equal To [<=] Greater Than Or Equal To [>=] Equal To [=] Not Equal To [<>] Logical And [and] Logical Or [or] Assignment [=] Sequence [,] Statements Objects Wrappers Servlet Server Side Preprocessor Executable Samples Sales Legal Feedback |
Operators are symbols which represent an operation on an expression. #### Operators
Category | Syntax
Assignment | variable = expression
Expression | [ . | ( expression ) ]
Sequence | [ , ]
Binary | expression [ Arithmetic | Logical | String ] expression
Arithmetic | [ + | - | * | / ]
Logical | [ and | or ]
Relational | [ < | > | <= | >= | = | <> ]
String | [ + ]
Unary | [ ! | - | + ] expression
#### Notes Operators are evaluated by precedence.
Operator | Description | Precedence
Expression |  |
. | object operator | 7
( ) | parentheses expression delimiter | 7
Unary |  |
! | not operator | 6
+ | plus operator | 6
- | minus operator | 6
Binary - Arithmetic |  |
* | multiplication operator | 5
/ | division operator | 5
+ | addition operator | 5
- | subtraction operator | 5
Binary - String |  |
+ | concatenation operator | 5
Binary - Relational |  |
< | less than operator | 4
> | greater than operator | 4
<= | less than or equal to operator | 4
>= | greater than or equal to operator | 4
= | equal to operator | 4
<> | not equal to operator | 4
Binary - Logical |  |
and | and operator | 3
or | or operator | 3
Assignment |  |
= | assignment operator | 2
Sequence |  |
, | sequence operator | 1
#### Example
    result = 10
    x + 5
    !doMore
    isObject or isConstant
    index < length
    ( offset + 10 ) / 2
    max( value1, value2 )
top of page
| Copyright © 1997-1999 Servertec. All rights reserved. Last Modified: Tue Jan 26 22:19:03 EST 1999