Skip to main content

Operators

Version: 11.0

Operators

Use the following operators in a RecordBox, RecordArea, or FormattedRecordArea.

OperatorExamplesDescription
a + bSubTotal + FreightAdds two numbers together or concatenates two strings.
a - bTotal - TaxSubtracts b from a.
a / bTotal / 12Divides a by b.
a * bUnitPrice * QuantityMultiplies two numbers together.
a % bQuantityA % QuantityBComputes the remainder after dividing a by b.
- a- PriceNumeric negation of a
a == bQuantityA == QuantityBReturns true if a is equal to b.
a > bQuantityA > QuantityBReturns true if a is greater than b.
a < bQuantityA < QuantityBReturns true if a is less than b.
a >= bQuantityA >= QuantityBReturns true if a is greater or equal to b.
a <= bQuantityA <= QuantityBReturns true if a less than or equal to b.
a != bQuantityA != QuantityBReturns true if a is not equal to b.
!bool!BoolAReturns boolean negation (returns true if operand is false).
a | bQuantityA | QuantityBReturns the logical disjunction on two Boolean expressions, or a bitwise disjunction on two numeric expressions.
a & bQuantityA & QuantityBReturns the logical conjunction on two Boolean expressions, or a bitwise conjunction on two numeric expressions.
a ~ bQuantityA ~ QuantityBReturns the bitwise complement operation on its operand, which has the effect of reversing each bit.
a ^ bQuantityA ^ QuantityBReturns the logical exclusion on two Boolean expressions, or a bitwise exclusion on two numeric expressions.

Operators can be used in the Field property of a RecordBox.

Operators are enclosed within pound signs in a RecordArea or FormattedRecordArea:

     Hello #FirstName# #LastName#,  
           Your order total is #SubTotal + Freight#.
     Sincerely,
     Order Department