Loading...
 

The 'If-Then-Else' function

Description

Depending of the status of a 'If -Then-Else' condition, the 'If-Then-Else' function or the 'Then' function will be activated.

The 'If-Then-Else' function controls the status of the 'If' only when activating the 'If-Else-Then' function. To have a continue control on the status of a condition; use a 'Process' function.

Parameters

Image186

Name
Introduce here a short and clear name for the 'If-Then-Else' function.
If Condition (TRUE)
see the ‘Condition’ function .
Status value of the conditional function
Select here the status on which the 'If-Then-Else' function has to control the conditional function. 2 statuses are possible:
On
If the status of the conditional function is 'on', then the 'Then' function will be switched.
Off
If the status of the conditional function is 'off' is, then the 'Then' function will be switched.
Select 'THEN'
Select here the function which is switched when the conditional function is true (on). Depending on the selected function some function specific parameters are put in. Consult the description of the specific function.
'Select 'ELSE'
Select here the function which is switched when the conditional function is not true (off). Depending on the selected function some function specific parameters are put in. Consult for this matter the description of the specific function.
For the calculation of the status of the 'If-Then-Else' function, there are following possibilities:
  • There is a 'Then' and an 'If' configured. When the 'If' is true, the status will be set through the status of the 'Then'. When de 'If' is NOT true, the status will be set through the status of the 'Else'.
  • There is only a 'Then' or an 'Else' configured. The status of the 'If-Then-Else' function will always be set through the status of the one available 'Then' or 'Else'.

Function behaviour when used on an interface

Option 'On/Off'

Short
With a short push on the button the 'If-Then-Else' function checks what is the actual status of the conditional function. If this is true (on), then the 'Than' function will be activated in accordance with the preset status. If the conditional function is not true (off), than the 'Else' function will be switched in accordance the preset status.
Long
The operation is the same as described under 'Short'.

Option 'On'

Short
With a short push on the button the 'If-Then-Else' function checks what is the actual status of the conditional function. If this is true (on), then the 'Than' function will be activated in accordance with the preset status. If the conditional function is not true (off), than no action will be activated.
Long
The operation is the same as described under 'Short'.

Option 'Off'

Short
the 'If-Then-Else' function will be switched off; the status of the conditional function will be controlled. Depending on this status the 'Then' or 'Else' function will be activated according to the 'out' status of the set target value. When the function which will be switched is already 'out', nothing will happen with this function.
'Long
The operation is the same as described under 'Short'.
The functioning of the 'Then' and 'Else' function depends on the selected function. Consult the description of the respective function to know the correct functioning.

Function behaviour when operating in another function

An 'If-Then-Else' function can be selected in another function. Depending on the preset target value the functioning will be as follows:

On
The 'If-Then-Else' function is activated: the status of the conditional function is checked. Depending on this status the 'Than' or 'Else' function will be activated in accordance with the 'on' status of the preset target value. If the function which will be switched is already 'on', nothing will happen with the function.
Off
The 'If-Then-Else' function is switched off: the status of this conditional function is checked. Depending on this status the 'Than' or 'Else' function will be activated in accordance with the 'off' status of the preset target value. If the function which will be switched is already 'off', nothing will happen with the function.
On/Off
When the other function is activated, then the 'If-Then-Else' function is activated. When the other function is switched off, then the 'If-Then-Else' function is switched off.
Off/Off
When the other function is activated then the 'If-Then-Else' function is switched off. The status of the conditional function is checked. Depending on the status the 'Than' or 'Else' function is switched in accordance with the 'off' status of the pr set target value. If the respective function at that moment is already 'off', than nothing will happen. When being switched off, this operation is repeated.
Not every function can be switched off. Consult for this matter the description of the specific function.

Switch Language

Technical Handbook: