Skip to main content
Skip table of contents

Conditions

Description

The Conditions function can be used to calculate the value of a business figure according to the occurrence of certain conditions.

Using this Function

Syntax

In the Control File, the Conditions function is called up as follows:

CODE
[account] = if condition then function_1 else function_2

Parameters

[account]

Business figure for which the value should be calculated.
This must be contained in the following input data: Input Files | Financial-Data

{if} condition

Condition that must be fulfilled for adjusting the value of the business figure according to function_1.
If this condition is not fulfilled, the value of the business figure is adjusted according to function_2.
The condition can be formulated by using the relations =,<,>,<=,>= and the correlations and, or.

{then} function_1

Denotes a function of the Function Library with which the value of the business figure is adjusted if the condition is fulfilled.

{else} function_2

Denotes a function of the Function Library with which the value of the business figure is adjusted if the condition is not fulfilled.

Examples

The examples below are based on the following data:

  • value of the business figure [10001]: 27,800.00

  • value of the business figure [10002]: 55,400.00

  • value of the business figure [10003]: 36,800.00

Example 1

CODE
[80000] = if [10001] < 30000 then [10002] else [10003]
  • new value of the business figure [80000]: 55,400.00

Example 2

CODE
[80000] = if [10001] < 30000 and [10002] < 30000 then [10002] else [10003]
  • new value of the business figure [80000]: 36,800.00

Example 3

CODE
[80000] = if [10001] < 30000 or [10002] < 30000 then [10002] else [10003]
  • new value of the business figure [80000]: 55,400.00

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.