Operators in Web Report Designer expressions
An operator in Bold Reports® Web Report Designer expressions is a symbol that performs a simple basic operation. You can use arithmetic, comparison, concatenation, logical or bitwise, and bit shift operators in an expression.
Arithmetic
Arithmetic operators in Web Report Designer expressions perform mathematical operations on two numeric terms.
| Operator | Description |
|---|---|
| ^ | Raises a number to the power of another number. |
| * | Multiplies two numbers. |
| / | Divides two numbers and returns a float result. |
| | | Divides two numbers and returns an integer result. |
| Mod | Returns the integer remainder of a division. |
| + | Adds two numbers. |
| - | Returns the difference between two numbers. |
Comparison
Comparison operators in Web Report Designer expressions compare whether two expressions are the same.
| Operator | Description |
|---|---|
| < | Less than. |
| >= | Less than or equal to. |
| > | Greater than. |
| >= | Greater than or equal to. |
| = | Equal to. |
| <> | Not equal to. |
| Like | Determines specific character string matches a specified pattern. |
| Is | Compares two object references. |
String Concatenation
String concatenation operators in Web Report Designer expressions append the second string to the first string.
| Operator | Description |
|---|---|
| & | Concatenates two strings. |
| + | Concatenates two strings. |
Logical and Bitwise
Logical and bitwise operators in Web Report Designer expressions perform logical manipulations between two integer terms.
| Operator | Description |
|---|---|
| And | Performs a logical conjunction on two Boolean expressions, or bitwise conjunction on two. |
| Not | Performs logical negation on a Boolean expression, or bitwise negation on a numeric expression. |
| Or | Performs a logical disjunction on two Boolean expressions, or bitwise disjunction on two numeric values. |
| Xor | Performs a logical exclusion operation on two Boolean expressions, or a bitwise exclusion on two numeric expressions. |
| AndAlso | Performs logical conjunction on two expressions. |
| OrElse | Performs logical disjunction on two expressions. |
Bit Shift
Bit shift operators in Web Report Designer expressions perform bit manipulations between two integer terms.
| Operator | Description |
|---|---|
| >> | Performs an arithmetic left-shift on a bit pattern. |
| << | Performs an arithmetic right-shift on a bit pattern. |