Operators are symbols that are used to execute various mathematical operations or logical comparisons to compute the desired data in the expression node. The following section includes a list of all of the supported operators.
Operator | Description | Example | Return type |
+ | Addition: Adds two values |
| Number/Decimal |
- | Subtraction: Subtracts two values |
| Number/Decimal |
* | Multiplication: Multiplies two values |
| Number/Decimal |
/ | Division: Divides two values |
| Number/Decimal |
== | Equal to: Checks if two values are equivalent. |
| Boolean |
!= | Not Equal to Checks if two values are not equivalent. |
Result: true
| Boolean |
< | Lesser than Checks if the value on the left is less than the value on the right |
| Boolean |
> | Greater than: Checks if the value on the left is greater than the value on the right. |
| Boolean |
<= | Lesser than or equal to: Checks if the value on the left is less than or equivalent to the value on the right. Left and Right operand values should be of the same data type |
| Boolean |
>= | Greater than or equal to: Checks if the value on the left is greater than or equivalent to the value on the right. Left and Right operand values should be of the same data type |
| Boolean |
&& | Logical And: Checks if both the left and right expressions are true.// checks if both the conditions are met |
Result: false
Result: true | Boolean |
|| | Logical OR Checks if any one of the expressions are true// checks if any one of the conditions is met. |
Result: False
Result: true | Boolean |