Advanced Search - Expression Operators, Functions and Constants
Operators
Operator
|
Description
|
Example
|
---|---|---|
+ | Adds the value of one numeric expression to another or concatenates two strings. | [FirstName] + ' ' + [LastName] [UnitPrice] + 4 |
- | Finds the difference between two numbers. | [Price1] - [Price2] |
* | Multiplies the value of two expressions. | [Quantity] * [UnitPrice] * (1 - [BonusAmount]) |
/ | Divides the first operand by the second. | [Quantity] / 2 |
% | Returns the remainder (modulus) obtained by dividing one numeric expression into another. | [Quantity] % 3 |
| | Compares each bit of its first operand to the corresponding bit of its second operand. If either bit is 1, the corresponding result bit is set to 1. Otherwise, the corresponding result bit is set to 0. | [Flag1] | [Flag2] |
& | Performs a bitwise logical AND operation between two integer values. | [Flag] & 10 |
^ | Performs a logical exclusion on two Boolean expressions or a bitwise exclusion on two numeric expressions. | [Flag1] ^ [Flag2] |
== | Returns true if both operands have the same value; otherwise, it returns false. | [Quantity] == 10 |
!= | Returns true if the operands do not have the same value; otherwise, it returns false. | [Country] != 'France' |
< | Less than operator. Used to compare expressions. | [UnitPrice] < 20 |
<= | Less than or equal to operator. Used to compare expressions. | [UnitPrice] <= 20 |
>= | Greater than or equal to operator. Used to compare expressions. | [UnitPrice] > 30 |
> | Greater than operator. Used to compare expressions. | [UnitPrice] >= 30 |
In (,,,) | Tests for the existence of a property in an object. | [Country] In ('USA', 'UK', 'Italy') |
Like | Compares a string against a pattern. If the value of the string matches the pattern, result is true. If the string does not match the pattern, result is false. If both string and pattern are empty strings, the result is true. | [Name] Like 'An%' |
Between (,) | Specifies a range to test. Returns true if a value is greater than or equal to the first operand and less than or equal to the second operand. | [Quantity] Between (10, 20) |
And | Performs a logical conjunction on two expressions. | [InStock] And ([ExtendedPrice]> 100) |
Or | Performs a logical disjunction on two Boolean expressions. | [Country]=='USA' Or [Country]=='UK' |
Not | Performs logical negation on an expression. | Not [InStock] |
Functions