At broad level there are 3 kinds of operators as mentioned below.

Exponentiation ^

Unary negation -

Multiplication *

Floating point Division /

Integer division \

Modulus arithmetic Mod -gets the remainder

Addition +

Subtraction -

String concatenation & - concatenates 2 strings

Equality =

Inequality <>

Less than <

Greater than >

Less than or equal to <=

Greater than or equal to >=

Object equivalence Is

- Arithmetic Operators
- Comparison Operators
- Logical Operators

__Arithmetic Operators in the order of precedence and their usage.__Exponentiation ^

Unary negation -

Multiplication *

Floating point Division /

Integer division \

Modulus arithmetic Mod -gets the remainder

Addition +

Subtraction -

String concatenation & - concatenates 2 strings

__Comparison Operators and their usage.__

Equality =

Inequality <>

Less than <

Greater than >

Less than or equal to <=

Greater than or equal to >=

Object equivalence Is

__Logical Operators__

__in the order of precedence__

__and their usage.__
Logical negation Not

Logical conjunction And

Logical disjunction Or

Logical exclusion Xor

Logical equivalence Eqv

Logical implication Imp

Example -

Logical conjunction And

Logical disjunction Or

Logical exclusion Xor

Logical equivalence Eqv

Logical implication Imp

Example -

if a>10 and b<99 then msgbox "a is greater than 10 and b is less than 99" end if msgbox "Remainder after dividing 10 by 3 is -> " & (10 mod 3)

## No comments:

## Post a Comment