Operators


Operators

1. Binary logical operators: and or nand nor xor xnor

2. Relational operators: = /= < <= > >=

3. Shifts operators: sll srl sla sra rol ror

4. Adding operators: + - &(concatenation)

5. Unary sign operators: + -

6. Multiplying operators: * / mod rem

7. Miscellaneous operators: not abs **

**

exponentiation

numeric ** integer

abs

absolute value

abs numeric

not

complement

not logic or boolean

*

multiplication

numeric * numeric

/

division

numeric / numeric

mod

modulo

integer mod integer

rem

remainder

integer rem integer

+

unary plus

+ numeric

-

unary minus

- numeric

+

addition

numeric + numeric

-

subtraction

numeric - numeric

&

concatenation

array or element & array or element

sll

shift left logical

logical array sll integer

srl

shift right logical

logical array srl integer

sla

shift left arithmetic

logical array sla integer

sra

shift right arithmetic

logical array sra integer

rol

rotate left

logical array rol integer

ror

rotate right

logical array ror integer

=

test for equality

/=

test for inequality

<

test for less than

<=

test for less than or equal

>

test for greater than

>=

test for greater than or equal

and

logical and

logical array or boolean

or

logical or

logical array or boolean

nand

logical complement of and

logical array or boolean

nor

logical complement of or

logical array or boolean

xor

logical exclusive or

logical array or boolean

xnor

logical complement of exclusive or

logical array or boolean