Visma.net ERP
Operators
Operators are used in formulas that you create in the Formula editor dialog box, which is called from the Manage import scenarios (SM206025) or Manage export scenarios (SM207025) windows.
To add operators to the formula, you can enter them directly in the Formula text area of the dialog box or select them from the list of formula components available
within the dialog box. (Select an operator type to view the list of operators of the
type, and then select an operator.)
To specify the operands for operators, you can
type them in the Formula text area or select them from the list of external or
internal fields provided within the Formula editor dialog box.
This article describes and provides examples of the operators you can use in formulas, broken down by operator type.

There are two types of operators: unary and binary.
Unary operators are applicable to
only one operand, while binary operators require two operands.
In general, expressions are evaluated from left to right with the following order of precedence:
- Logical operators:
Not
,And
,Or
- Comparison operators: =, <>, , <=, >=
- Arithmetic operators: -, *, /,
Mod
, +, -

Arithmetic operators, which are listed below, take numerical values as their operands and return a single numerical value.
Operator | Description and example |
---|---|
+ |
Adds the two operands and returns the result. Example: In this example, the |
- |
Subtracts the second operand from the first. Example: In this example, the |
* |
Multiplies the two operands. Example: In this example, the |
/ |
Yields the quotient of the operands, which is the first operand divided by the second. Example: In this example, the |
Mod (Modulus) |
Divides the first integer operand by the second integer operand and returns the remainder, rounded to the nearest integer. Example: In this example, the |

Logical operators evaluate one or two Boolean expressions and return a Boolean result
(True
or False
).
Because these operators evaluate only Boolean
expressions, you must use elements whose only values are True
and
False
(typically check boxes and radio buttons).
The logical operators
are listed below.
Operator | Description and example |
---|---|
And |
Performs logical conjunction on two Boolean expressions: returns
Example: In this example, the |
Or |
Performs logical disjunction on two Boolean expressions: returns
Example: |
Not |
Performs logical negation on a Boolean expression: returns
Example: In this example, the |

Comparison operators compare two expressions and return a Boolean value
(True
or False
) that represents the result of the comparison.
This group of operators includes the following operators.
Operator | Description and example |
---|---|
= |
Returns Example: In this example, the |
<> |
Returns Example: In this example, the |
< |
Returns Example: In this example, the |
> |
Returns Example: In this example, the |
<= |
Returns Example: In this example, |
>= |
Returns Example: In this example, the |

This miscellaneous group of operators includes the following operators and constants.
Operator | Description and example |
---|---|
In |
An operator that returns Example: In this example, the |
True |
A binary constant used as an operand in logical expressions. Example: |
False |
A binary constant used as an operand in logical expressions. Example: |
Null |
A special value used as an operand in logical expressions; designates an undefined value. Example: |
Parent topic:
Configuring scenario mapping
Related concepts
Functions
Related reference
Formula editor dialog box
Manage import scenarios (SM206025)
Manage export scenarios (SM207025)