Skip to main content

Operators

Expression Syntax: Operators

DPL Studio uses three types of operators in its expression syntax arithmetic, relational, and logical.

Arithmetic operators

Arithmetic operators are represented by the symbols + (addition), - (subtraction), / (division), * (multiplication), and % (modulus--the remainder after dividing two integers). The operators can be applied to scalar and vector data.

OperatorOperationExampleResult
+addition2 + 35
-subtraction2 - 3-1
/division4 / 22
*multiplication2 * 36
%modulus5 % 32

Relational operators

Relational operators compare two values and return the result of the comparison as a Boolean value of True or False. Digital Process Logic Studio supports the six operators listed below. Digital process logic studio supports the common database operators In and Between as functions; for more details, see their descriptions in the function section.

OperatorOperationExampleResult
=equals0 = 1False
<>not equals0 < > 1True
>greater than0 > 1False
<less than0 < 1True
>=greater than or equal to0 >= 1False
<=less than or equal to0<=1True

Logical operators

Arithmetic operators are represented by the symbols + (addition), - (subtraction), / (division), * (multiplication), and % (modulus--the remainder after dividing two integers). The operators can be applied to scalar and vector data. Logical operators (also called propositional operators) operate against two Boolean values, DPL Studio supports the operators And, Or and Not, as described below

.

OperatorOperationExampleResult
Andboth statements are true(5>3) And (5>4)True
Orat least one statement is true(5<3) Or (5>4)True
Notneither statement is trueNot ((5<3) Or (5>4))False